From 5a8508c16cee97618da9618ca7960460f3ff19b1 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 20 Oct 2023 15:50:04 -0400 Subject: [PATCH] Template collection created --- src/engine/gameManager/ZoneManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/gameManager/ZoneManager.java b/src/engine/gameManager/ZoneManager.java index de34e5c4..a9b32463 100644 --- a/src/engine/gameManager/ZoneManager.java +++ b/src/engine/gameManager/ZoneManager.java @@ -17,16 +17,14 @@ import engine.math.Vector3fImmutable; import engine.objects.Building; import engine.objects.City; import engine.objects.Zone; +import engine.objects.ZoneTemplate; import engine.server.MBServerStatics; import org.pmw.tinylog.Logger; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneId; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Set; +import java.util.*; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ThreadLocalRandom; @@ -38,6 +36,8 @@ public enum ZoneManager { ZONEMANAGER; + public static HashMap _zone_templates = new HashMap<>(); + public static final Set macroZones = Collections.newSetFromMap(new ConcurrentHashMap<>()); private static final ConcurrentHashMap zonesByID = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD); private static final ConcurrentHashMap zonesByUUID = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD);