コード例 #1
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = new RequiredMessageHeader();
     Field0.Parse(buffer);
     FromID = buffer.ReadInt(32);
     Amount = buffer.ReadInt64(64);
     InvLoc = new InvLoc();
     InvLoc.Parse(buffer);
 }
コード例 #2
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = new RequiredMessageHeader();
     Field0.Parse(buffer);
     ItemID = buffer.ReadInt(32);
     Location = new InvLoc();
     Location.Parse(buffer);
 }
コード例 #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;
     FromID = stream.ReadValueS32();
     stream.Position = offset + 16;
     Amount = stream.ReadValueS64();
     stream.Position = offset + 24;
     InvLoc = new InvLoc();
     InvLoc.FileRead(stream, stream.Position);
 }
コード例 #4
0
 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;
     Location = new InvLoc();
     Location.FileRead(stream, stream.Position);
 }