コード例 #1
0
 public override void Parse(GameBitBuffer buffer)
 {
     serItemLevelModifiers = new SerializeData();
     serItemLevelModifiers.Parse(buffer);
     //still checking variablearrays
     this.ItemLevelModifiers = new List<LootDistribution>( buffer.ReadInt(0) );
     for(int loop12 = 0; loop12 < _ItemLevelModifiers.Count; loop12++)
     {
         _ItemLevelModifiers[loop12] = new LootDistribution();
         _ItemLevelModifiers[loop12].Parse(buffer);
     }
 }
コード例 #2
0
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     serItemLevelModifiers = new SerializeData();
     serItemLevelModifiers.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     //still checking variablearrays
     ItemLevelModifiers = new List<LootDistribution>();
     for(int i = 0; i < (int)(serItemLevelModifiers.Field1 / 92); i++)
     {
     stream.Position = serItemLevelModifiers.Field0 + 16 + (92*i) ;
         LootDistribution temp12_ItemLevelModifiers;
         temp12_ItemLevelModifiers = new LootDistribution();
         temp12_ItemLevelModifiers.FileRead(stream, stream.Position);
         _ItemLevelModifiers.Add(temp12_ItemLevelModifiers);
     }
 }