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