예제 #1
0
 @Override
 public void write(ByteArrayDataOutput out) {
   out.writeUTF(playerName);
   out.writeInt(x);
   out.writeInt(y);
   out.writeInt(z);
   out.writeInt(size);
   out.writeInt(types);
   out.writeBoolean(remove);
   out.writeChar(upgrade);
   out.writeChar(downgrade);
 }
예제 #2
0
 @Override
 public void write(Object o, ByteArrayDataOutput dat) {
   dat.writeChar((Character) o);
 }