public override void Parse(GameBitBuffer buffer) { Field0 = buffer.ReadInt(32); serKeys = new SerializeData(); serKeys.Parse(buffer); //still checking variablearrays this.Keys = new List<ScaleKey>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _Keys.Count; loop12++) { _Keys[loop12] = new ScaleKey(); _Keys[loop12].Parse(buffer); } }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; Field0 = stream.ReadValueS32(); stream.Position = offset + 4; serKeys = new SerializeData(); serKeys.FileRead(stream, stream.Position); stream.Position = offset + 16; //still checking variablearrays Keys = new List<ScaleKey>(); for(int i = 0; i < (int)(serKeys.Field1 / 8); i++) { stream.Position = serKeys.Field0 + 16 + (8*i) ; ScaleKey temp12_Keys; temp12_Keys = new ScaleKey(); temp12_Keys.FileRead(stream, stream.Position); _Keys.Add(temp12_Keys); } }