public override void Parse(GameBitBuffer buffer) { serItemEnhancements = new SerializeData(); serItemEnhancements.Parse(buffer); //still checking variablearrays this.ItemEnhancements = new List<ItemEnhancement>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _ItemEnhancements.Count; loop12++) { _ItemEnhancements[loop12] = new ItemEnhancement(); _ItemEnhancements[loop12].Parse(buffer); } }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; serItemEnhancements = new SerializeData(); serItemEnhancements.FileRead(stream, stream.Position); stream.Position = offset + 8; //still checking variablearrays ItemEnhancements = new List<ItemEnhancement>(); for(int i = 0; i < (int)(serItemEnhancements.Field1 / 696); i++) { stream.Position = serItemEnhancements.Field0 + 16 + (696*i) ; ItemEnhancement temp12_ItemEnhancements; temp12_ItemEnhancements = new ItemEnhancement(); temp12_ItemEnhancements.FileRead(stream, stream.Position); _ItemEnhancements.Add(temp12_ItemEnhancements); } }