@Override public void serialize(MicroByteBuffer buffer) { SerializeHelper.serializeEntityReference(warrior, buffer); if (stateTackle instanceof Weapon) { TackleSerializer.serializeWeapon((Weapon) stateTackle, buffer); } else { TackleSerializer.serializeArmor((Armor) stateTackle, buffer); } SimpleSerializer.serialize(x, buffer); SimpleSerializer.serialize(y, buffer); }
@Override public void serialize(MicroByteBuffer buffer) { SerializeHelper.serializeEntityReference(alliance, buffer); }