コード例 #1
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = new RequiredMessageHeader();
     Field0.Parse(buffer);
     ActorID = buffer.ReadInt(32);
     WorldLocation = new WorldLocationMessageData();
     WorldLocation.Parse(buffer);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = new RequiredMessageHeader();
     Field0.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     ActorID = stream.ReadValueS32();
     stream.Position = offset + 12;
     WorldLocation = new WorldLocationMessageData();
     WorldLocation.FileRead(stream, stream.Position);
 }