Cloning works now, changed object list to hash map (significant performance increase)

This commit is contained in:
Light2
2013-09-21 19:02:35 +02:00
parent b676dffdec
commit c7bfc890bd
13 changed files with 145 additions and 59 deletions
@@ -48,16 +48,20 @@ public class StartTask extends ObjControllerObject {
@Override
public IoBuffer serialize() {
IoBuffer result = IoBuffer.allocate(33).order(ByteOrder.LITTLE_ENDIAN);
IoBuffer result = IoBuffer.allocate(37).order(ByteOrder.LITTLE_ENDIAN);
result.putInt(ObjControllerMessage.START_TASK);
result.putLong(objectId);
result.putInt(0);
result.put((byte) 0);
result.put((byte) 4); // 0 for no cooldown, 0x26 adds execute time (usually 0.25)
result.putInt(actionCounter);
result.putLong(0);
result.putInt(0);
result.putInt(0);
result.putInt(commandCRC);
result.putInt(0); // second unknown crc
result.putInt(0); // unk
result.putFloat(0); // cooldown
return result.flip();