Пример #1
0
 @Override
 public void serialize(Buffer buf) {
   short flag1 = 0;
   flag1 = BooleanByteWrapper.setFlag(flag1, 0, isOnSale);
   flag1 = BooleanByteWrapper.setFlag(flag1, 1, isSaleLocked);
   buf.writeUByte(flag1);
   buf.writeInt(houseId);
   buf.writeUShort(doorsOnMap.length);
   for (int entry : doorsOnMap) {
     buf.writeInt(entry);
   }
   buf.writeString(ownerName);
   buf.writeShort(modelId);
 }
Пример #2
0
 @Override
 public void serialize(Buffer buf) {
   buf.writeInt(houseId);
 }
Пример #3
0
 @Override
 public void serialize(Buffer buf) {
   buf.writeInt(objectUID);
   buf.writeInt(foodUID);
   buf.writeShort(foodQuantity);
 }
Пример #4
0
 @Override
 public void serialize(Buffer buf) {
   buf.writeInt(kickedId);
 }