responseCode = Constants.SMSG_REQUESTWATERSOURCES;
}
@Override
public byte[] constructResponseInBytes() {
GamePacket packet = new GamePacket(responseCode);
packet.addShort16(status);
if (status == 0) {
if (world != null) {
packet.addShort16((short) world.getEnvironments().size());
for (Environment env : world.getEnvironments()) {
for (Zone zone : env.getZones()) {
// if (zone.getWaters().size() > 0) {
// packet.addShort16((short) zone.getID());
// packet.addInt32(zone.getWaters().get(0).getLocationX());
// packet.addInt32(zone.getWaters().get(0).getLocationY());
// packet.addInt32(zone.getWaters().get(0).getLocationZ());
// }
}
}
}
}
return packet.getBytes();
}