|
|
@ -199,7 +199,6 @@ public class City extends AbstractWorldObject { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void serializeForClientMsg(City city, ByteBufferWriter writer) { |
|
|
|
public static void serializeForClientMsg(City city, ByteBufferWriter writer) { |
|
|
|
try { |
|
|
|
|
|
|
|
AbstractCharacter guildRuler; |
|
|
|
AbstractCharacter guildRuler; |
|
|
|
Guild rulingGuild; |
|
|
|
Guild rulingGuild; |
|
|
|
Guild rulingNation; |
|
|
|
Guild rulingNation; |
|
|
@ -316,13 +315,6 @@ public class City extends AbstractWorldObject { |
|
|
|
|
|
|
|
|
|
|
|
writer.putLocalDateTime(city.established); |
|
|
|
writer.putLocalDateTime(city.established); |
|
|
|
|
|
|
|
|
|
|
|
// writer.put((byte) city.established.getDayOfMonth());
|
|
|
|
|
|
|
|
// writer.put((byte) city.established.minusMonths(1).getMonth().getValue());
|
|
|
|
|
|
|
|
// writer.putInt((int) years);
|
|
|
|
|
|
|
|
// writer.put((byte) hours);
|
|
|
|
|
|
|
|
// writer.put((byte) minutes);
|
|
|
|
|
|
|
|
// writer.put((byte) seconds);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
writer.putFloat(city.location.x); |
|
|
|
writer.putFloat(city.location.x); |
|
|
|
writer.putFloat(city.location.y); |
|
|
|
writer.putFloat(city.location.y); |
|
|
|
writer.putFloat(city.location.z); |
|
|
|
writer.putFloat(city.location.z); |
|
|
@ -333,9 +325,6 @@ public class City extends AbstractWorldObject { |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
writer.put((byte) 0); |
|
|
|
}catch(Exception e){ |
|
|
|
|
|
|
|
Logger.error(city.getObjectUUID() + " failed ot serialize because: " + e.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Vector3fImmutable getBindLoc(int cityID) { |
|
|
|
public static Vector3fImmutable getBindLoc(int cityID) { |
|
|
|