public override void Parse(GameBitBuffer buffer) { Field0 = buffer.ReadInt(32); serKeys = new SerializeData(); serKeys.Parse(buffer); //still checking variablearrays this.Keys = new List<RotationKey>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _Keys.Count; loop12++) { _Keys[loop12] = new RotationKey(); _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<RotationKey>(); for(int i = 0; i < (int)(serKeys.Field1 / 12); i++) { stream.Position = serKeys.Field0 + 16 + (12*i) ; RotationKey temp12_Keys; temp12_Keys = new RotationKey(); temp12_Keys.FileRead(stream, stream.Position); _Keys.Add(temp12_Keys); } }