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<AngleNode>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _Nodes.Count; loop12++) { _Nodes[loop12] = new AngleNode(); _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<AngleNode>(); for(int i = 0; i < (int)(serNodes.Field1 / 12); i++) { stream.Position = serNodes.Field0 + 16 + (12*i) ; AngleNode temp12_Nodes; temp12_Nodes = new AngleNode(); temp12_Nodes.FileRead(stream, stream.Position); _Nodes.Add(temp12_Nodes); } }