mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
More removed DeedObject stuff
Also changed attachments to use ids instead of objects. Best to use Ids otherwise issues such as objects not deleting successfully occur, if not outright causing persistence errors during saving.
This commit is contained in:
@@ -39,6 +39,7 @@ public class EnterStructurePlacementModeMessage extends SWGMessage {
|
||||
public EnterStructurePlacementModeMessage(SWGObject deed, String structureTemplate) {
|
||||
this.deed = deed;
|
||||
this.structureTemplate = structureTemplate;
|
||||
deed.setAttachment("structureTemplate", structureTemplate);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -49,15 +50,10 @@ public class EnterStructurePlacementModeMessage extends SWGMessage {
|
||||
@Override
|
||||
public IoBuffer serialize() {
|
||||
IoBuffer result = IoBuffer.allocate(16 + structureTemplate.length()).order(ByteOrder.LITTLE_ENDIAN);
|
||||
|
||||
result.putShort((short) 3);
|
||||
result.putInt(0xE8A54DC1);
|
||||
|
||||
result.putLong(deed.getObjectID());
|
||||
|
||||
deed.setAttachment("structureTemplate", structureTemplate);
|
||||
result.put(getAsciiString(structureTemplate));
|
||||
|
||||
return result.flip();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user