From 2bac2b9fb525be422838f6c99d196e4c14964b39 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 18 Apr 2021 15:34:31 +0200 Subject: [PATCH] Add Region Data --- .../steamwar/bausystem/region/Prototype.java | 2 ++ .../de/steamwar/bausystem/region/Region.java | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java b/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java index c784f423..9c7aa190 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/region/Prototype.java @@ -19,12 +19,14 @@ package de.steamwar.bausystem.region; +import lombok.Getter; import yapion.hierarchy.types.YAPIONObject; import java.io.File; import java.util.HashMap; import java.util.Map; +@Getter public class Prototype { private static final Map PROTOTYPE_MAP = new HashMap<>(); diff --git a/BauSystem_Main/src/de/steamwar/bausystem/region/Region.java b/BauSystem_Main/src/de/steamwar/bausystem/region/Region.java index c34946cb..e11c04f6 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/region/Region.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/region/Region.java @@ -19,5 +19,30 @@ package de.steamwar.bausystem.region; +import java.util.Set; + public class Region { + + private Prototype prototype; + private Set alternativePrototypes; + + private Point minPoint; + private Point maxPoint; + + private Point minPointTestblock; + private Point maxPointTestblock; + + private Point minPointTestblockExtension; + private Point maxPointTestblockExtension; + + private Point minPointBuild; + private Point maxPointBuild; + + private Point minPointBuildExtension; + private Point maxPointBuildExtension; + + private Region linkedRegion = null; // Nullable + + private FlagStorage flagStorage; + }