コード例 #1
0
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 12;
     ItemSpecifierData = new ItemSpecifierData();
     ItemSpecifierData.FileRead(stream, stream.Position);
 }
コード例 #2
0
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 4;
     SNOSubTreasureClass = stream.ReadValueS32();
     stream.Position = offset + 32;
     Field2 = new ItemSpecifierData();
     Field2.FileRead(stream, stream.Position);
     stream.Position = offset + 16;
     GBIdQualityClass = stream.ReadValueS32();
     stream.Position = offset + 8;
     Percentage = stream.ReadValueF32();
     stream.Position = offset + 12;
     Field5 = stream.ReadValueS32();
     stream.Position = offset + 28;
     SNOCondition = stream.ReadValueS32();
     stream.Position = offset + 20;
     Field7 = stream.ReadValueS32();
     stream.Position = offset + 24;
     Field8 = stream.ReadValueS32();
     stream.Position = offset + 64;
     Field9 = new int[4];
     for(int loop12=0; loop12 < 4; loop12++ )
     {
         int temp12_Field9;
         temp12_Field9 = stream.ReadValueS32();
         _Field9[loop12] = temp12_Field9;
     }
     stream.Position = offset + 60;
     Field10 = stream.ReadValueS32();
     stream.Position = offset + 80;
     Field11 = stream.ReadValueS32();
 }