Conflicts:
	scripts/commands/setgodmode.py
This commit is contained in:
Light2
2014-03-26 23:51:14 +01:00
76 changed files with 995 additions and 1105 deletions
@@ -150,6 +150,17 @@ public class TangibleMessageBuilder extends ObjectMessageBuilder {
}
public IoBuffer buildCustomizationDelta(byte[] customization) {
IoBuffer buffer = bufferPool.allocate(customization.length, false).order(ByteOrder.LITTLE_ENDIAN);
buffer.put(customization);
int size = buffer.position();
buffer.flip();
buffer = createDelta("TANO", (byte) 3, (short) 1, (short) 6, buffer, size + 4);
return buffer;
}
@Override
public void sendListDelta(byte viewType, short updateType, IoBuffer buffer) {
// TODO Auto-generated method stub
@@ -123,7 +123,11 @@ public class TangibleObject extends SWGObject {
}
public void setCustomization(byte[] customization) {
this.customization = customization;
synchronized(objectMutex) {
this.customization = customization;
}
notifyObservers(messageBuilder.buildCustomizationDelta(customization), false);
}
public List<Integer> getComponentCustomizations() {