コード例 #1
0
 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt64(64);
     Field2 = buffer.ReadCharArray(512);
     Field3 = buffer.ReadInt64(64);
     Field4 = buffer.ReadCharArray(512);
     Field5 = buffer.ReadInt(32);
     Field6 = new UIStyle();
     Field6.Parse(buffer);
     Field7 = new UIAnimationElements();
     Field7.Parse(buffer);
 }
コード例 #2
0
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 8;
     Field1 = stream.ReadValueS64();
     stream.Position = offset + 16;
     Field2 = stream.ReadString(512);
     stream.Position = offset + 528;
     Field3 = stream.ReadValueS64();
     stream.Position = offset + 536;
     Field4 = stream.ReadString(512);
     stream.Position = offset + 1048;
     Field5 = stream.ReadValueS32();
     stream.Position = offset + 1056;
     Field6 = new UIStyle();
     Field6.FileRead(stream, stream.Position);
     stream.Position = offset + 1664;
     Field7 = new UIAnimationElements();
     Field7.FileRead(stream, stream.Position);
 }