public override void Parse(GameBitBuffer buffer) { serHeros = new SerializeData(); serHeros.Parse(buffer); //still checking variablearrays this.arHeros = new List<HeroData>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _arHeros.Count; loop12++) { _arHeros[loop12] = new HeroData(); _arHeros[loop12].Parse(buffer); } }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; serHeros = new SerializeData(); serHeros.FileRead(stream, stream.Position); stream.Position = offset + 8; //still checking variablearrays arHeros = new List<HeroData>(); for(int i = 0; i < (int)(serHeros.Field1 / 876); i++) { stream.Position = serHeros.Field0 + 16 + (876*i) ; HeroData temp12_arHeros; temp12_arHeros = new HeroData(); temp12_arHeros.FileRead(stream, stream.Position); _arHeros.Add(temp12_arHeros); } }