|
|
|
@ -34,10 +34,13 @@ public class Zone extends AbstractWorldObject {
@@ -34,10 +34,13 @@ public class Zone extends AbstractWorldObject {
|
|
|
|
|
public final Set<Building> zoneBuildingSet = Collections.newSetFromMap(new ConcurrentHashMap<>()); |
|
|
|
|
public final Set<NPC> zoneNPCSet = Collections.newSetFromMap(new ConcurrentHashMap<>()); |
|
|
|
|
public final Set<Mob> zoneMobSet = Collections.newSetFromMap(new ConcurrentHashMap<>()); |
|
|
|
|
|
|
|
|
|
public ZoneTemplate template; |
|
|
|
|
|
|
|
|
|
public final int playerCityUUID; |
|
|
|
|
public final String zoneName; |
|
|
|
|
public final float major_radius; |
|
|
|
|
public final float minor_radius; |
|
|
|
|
public final float xOffset; |
|
|
|
|
public final float zOffset; |
|
|
|
|
public final float yOffset; |
|
|
|
@ -72,17 +75,23 @@ public class Zone extends AbstractWorldObject {
@@ -72,17 +75,23 @@ public class Zone extends AbstractWorldObject {
|
|
|
|
|
super(rs); |
|
|
|
|
|
|
|
|
|
this.parentZoneID = rs.getInt("parent"); |
|
|
|
|
this.playerCityUUID = rs.getInt("playerCityUUID"); |
|
|
|
|
this.guild_zone = this.playerCityUUID != 0; |
|
|
|
|
this.templateID = rs.getInt("template"); |
|
|
|
|
this.zoneName = rs.getString("zone_name"); |
|
|
|
|
this.peace_zone = rs.getByte("peace_zone"); |
|
|
|
|
|
|
|
|
|
this.major_radius = rs.getFloat("major_radius"); |
|
|
|
|
this.minor_radius = rs.getFloat("minor_radius"); |
|
|
|
|
this.xOffset = rs.getFloat("xOffset"); |
|
|
|
|
this.zOffset = rs.getFloat("zOffset"); |
|
|
|
|
this.yOffset = rs.getFloat("yOffset"); |
|
|
|
|
this.templateID = rs.getInt("template"); |
|
|
|
|
this.peace_zone = rs.getByte("peace_zone"); |
|
|
|
|
|
|
|
|
|
this.playerCityUUID = rs.getInt("playerCityUUID"); |
|
|
|
|
this.guild_zone = this.playerCityUUID != 0; |
|
|
|
|
|
|
|
|
|
this.icon1 = rs.getString("icon1"); |
|
|
|
|
this.icon2 = rs.getString("icon2"); |
|
|
|
|
this.icon3 = rs.getString("icon3"); |
|
|
|
|
|
|
|
|
|
this.min_level = rs.getInt("min_level"); |
|
|
|
|
this.max_level = rs.getInt("max_level"); |
|
|
|
|
|
|
|
|
|