public override void Encode(GameBitBuffer buffer) { buffer.WriteUInt(32, ItemId); if (InventoryLocation != null) { InventoryLocation.Encode(buffer); } buffer.WriteInt(32, Field2); }
public override void Encode(GameBitBuffer buffer) { buffer.WriteInt(32, Field0); buffer.WriteInt(32, Field1); buffer.WriteInt(5, Field2); buffer.WriteInt(2, Field3 - (-1)); buffer.WriteBool(Field4 != null); if (Field4 != null) { Field4.Encode(buffer); } buffer.WriteBool(Field5 != null); if (Field5 != null) { Field5.Encode(buffer); } Field6.Encode(buffer); buffer.WriteInt(32, Field7); buffer.WriteInt(32, Field8); buffer.WriteInt(4, Field9 - (-1)); buffer.WriteInt(8, Field10); buffer.WriteBool(Field11.HasValue); if (Field11.HasValue) { buffer.WriteInt(32, Field11.Value); } buffer.WriteBool(Field12.HasValue); if (Field12.HasValue) { buffer.WriteInt(32, Field12.Value); } buffer.WriteBool(Field13.HasValue); if (Field13.HasValue) { buffer.WriteInt(32, Field13.Value); } }
public override void Encode(GameBitBuffer buffer) { buffer.WriteUInt(32, ActorID); buffer.WriteInt(32, ActorSNOId); buffer.WriteInt(5, Field2); buffer.WriteInt(2, Field3 - (-1)); buffer.WriteBool(WorldLocation != null); if (WorldLocation != null) { WorldLocation.Encode(buffer); } buffer.WriteBool(InventoryLocation != null); if (InventoryLocation != null) { InventoryLocation.Encode(buffer); } GBHandle.Encode(buffer); buffer.WriteInt(32, Field7); buffer.WriteInt(32, NameSNOId); buffer.WriteInt(4, Quality - (-1)); buffer.WriteInt(8, Field10); buffer.WriteBool(Field11.HasValue); if (Field11.HasValue) { buffer.WriteInt(32, Field11.Value); } buffer.WriteBool(MarkerSetSNO.HasValue); if (MarkerSetSNO.HasValue) { buffer.WriteInt(32, MarkerSetSNO.Value); } buffer.WriteBool(MarkerSetIndex.HasValue); if (MarkerSetIndex.HasValue) { buffer.WriteInt(32, MarkerSetIndex.Value); } }
public override void Encode(GameBitBuffer buffer) { buffer.WriteInt(32, Field0); Field1.Encode(buffer); buffer.WriteInt(32, Field2); }