Browse Source

Change to AWO

combat-2
MagicBot 1 year ago
parent
commit
da32765902
  1. 7
      src/engine/objects/Zone.java

7
src/engine/objects/Zone.java

@ -28,7 +28,7 @@ import java.util.Collections; @@ -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<>());
@ -138,6 +138,11 @@ public class Zone extends AbstractGameObject { @@ -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)

Loading…
Cancel
Save