Change to AWO

This commit is contained in:
2023-10-18 08:03:47 -04:00
parent 9392ceda61
commit da32765902
+8 -3
View File
@@ -28,7 +28,7 @@ import java.util.Collections;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
public class Zone extends AbstractGameObject {
public class Zone extends AbstractWorldObject {
public final Set<Building> zoneBuildingSet = Collections.newSetFromMap(new ConcurrentHashMap<>());
public final Set<NPC> zoneNPCSet = Collections.newSetFromMap(new ConcurrentHashMap<>());
@@ -128,8 +128,8 @@ public class Zone extends AbstractGameObject {
this.max_level = parentZone.max_level;
}
if (parentZone != null)
parentZone.addNode(this);
if (parentZone != null)
parentZone.addNode(this);
// If zone doesn't yet hava a hash then write it back to the zone table
@@ -138,6 +138,11 @@ public class Zone extends AbstractGameObject {
}
@Override
public void runAfterLoad() {
}
public static void serializeForClientMsg(Zone zone, ByteBufferWriter writer) {
if (zone.template == 0 && zone.playerCityUUID == 0)