public override void Parse(GameBitBuffer buffer) { serMonsterAffixes = new SerializeData(); serMonsterAffixes.Parse(buffer); //still checking variablearrays this.MonsterAffixes = new List<MonsterAffixesEntry>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _MonsterAffixes.Count; loop12++) { _MonsterAffixes[loop12] = new MonsterAffixesEntry(); _MonsterAffixes[loop12].Parse(buffer); } }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; serMonsterAffixes = new SerializeData(); serMonsterAffixes.FileRead(stream, stream.Position); stream.Position = offset + 8; //still checking variablearrays MonsterAffixes = new List<MonsterAffixesEntry>(); for(int i = 0; i < (int)(serMonsterAffixes.Field1 / 792); i++) { stream.Position = serMonsterAffixes.Field0 + 16 + (792*i) ; MonsterAffixesEntry temp12_MonsterAffixes; temp12_MonsterAffixes = new MonsterAffixesEntry(); temp12_MonsterAffixes.FileRead(stream, stream.Position); _MonsterAffixes.Add(temp12_MonsterAffixes); } }