public override void Parse(GameBitBuffer buffer) { Field0 = new RequiredMessageHeader(); Field0.Parse(buffer); ItemId = buffer.ReadInt(32); InventoryLocation = new InventoryLocationMessageData(); InventoryLocation.Parse(buffer); Field3 = buffer.ReadInt(32); }
public override void Parse(GameBitBuffer buffer) { Field0 = new RequiredMessageHeader(); Field0.Parse(buffer); ActorID = buffer.ReadInt(32); ActorSNOId = buffer.ReadInt(32); Field3 = buffer.ReadInt(6); Field4 = buffer.ReadInt(2) + (-1); if(buffer.ReadBool()) { WorldLocation = new WorldLocationMessageData(); WorldLocation.Parse(buffer); } if(buffer.ReadBool()) { InventoryLocation = new InventoryLocationMessageData(); InventoryLocation.Parse(buffer); } Field7 = new GBHandle(); Field7.Parse(buffer); Field8 = buffer.ReadInt(32); NameSNOId = buffer.ReadInt(32); Qualilty = buffer.ReadInt(4) + (-1); Field11 = (byte)buffer.ReadInt(8); if(buffer.ReadBool()) Field12 = buffer.ReadInt(32); if(buffer.ReadBool()) MarkerSetSNO = buffer.ReadInt(32); if(buffer.ReadBool()) MarketSetIndex = buffer.ReadInt(32); }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; Field0 = new RequiredMessageHeader(); Field0.FileRead(stream, stream.Position); stream.Position = offset + 8; ItemId = stream.ReadValueS32(); stream.Position = offset + 12; InventoryLocation = new InventoryLocationMessageData(); InventoryLocation.FileRead(stream, stream.Position); stream.Position = offset + 28; Field3 = stream.ReadValueS32(); }