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