Browse Source

Change to AWO

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
da32765902
  1. 11
      src/engine/objects/Zone.java

11
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<>());
@ -128,8 +128,8 @@ public class Zone extends AbstractGameObject { @@ -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 { @@ -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