public override void Parse(GameBitBuffer buffer) { Field0 = new InterpolationPathHeader(); Field0.Parse(buffer); serNodes = new SerializeData(); serNodes.Parse(buffer); //still checking variablearrays this.Nodes = new List<IntNode>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _Nodes.Count; loop12++) { _Nodes[loop12] = new IntNode(); _Nodes[loop12].Parse(buffer); } }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; Field0 = new InterpolationPathHeader(); Field0.FileRead(stream, stream.Position); stream.Position = offset + 32; serNodes = new SerializeData(); serNodes.FileRead(stream, stream.Position); stream.Position = offset + 28; //still checking variablearrays Nodes = new List<IntNode>(); for(int i = 0; i < (int)(serNodes.Field1 / 12); i++) { stream.Position = serNodes.Field0 + 16 + (12*i) ; IntNode temp12_Nodes; temp12_Nodes = new IntNode(); temp12_Nodes.FileRead(stream, stream.Position); _Nodes.Add(temp12_Nodes); } }