public override void Parse(GameBitBuffer buffer) { serDRLGParams = new SerializeData(); serDRLGParams.Parse(buffer); //still checking variablearrays this.DRLGParams = new List<DRLGParams>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _DRLGParams.Count; loop12++) { _DRLGParams[loop12] = new DRLGParams(); _DRLGParams[loop12].Parse(buffer); } serSceneParams = new SerializeData(); serSceneParams.Parse(buffer); //still checking variablearrays this.SceneParams = new List<SceneParams>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _SceneParams.Count; loop12++) { _SceneParams[loop12] = new SceneParams(); _SceneParams[loop12].Parse(buffer); } Field4 = new LabelRuleSet(); Field4.Parse(buffer); Field5 = buffer.ReadInt(32); Field6 = new SceneClusterSet(); Field6.Parse(buffer); arNavMeshFuncs = new int[4]; for(int i = 0;i < _arNavMeshFuncs.Length;i++) _arNavMeshFuncs[i] = buffer.ReadInt(32); snoScript = buffer.ReadInt(32); Field9 = buffer.ReadInt(32); }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; serDRLGParams = new SerializeData(); serDRLGParams.FileRead(stream, stream.Position); stream.Position = offset + 8; //still checking variablearrays DRLGParams = new List<DRLGParams>(); for(int i = 0; i < (int)(serDRLGParams.Field1 / 120); i++) { stream.Position = serDRLGParams.Field0 + 16 + (120*i) ; DRLGParams temp12_DRLGParams; temp12_DRLGParams = new DRLGParams(); temp12_DRLGParams.FileRead(stream, stream.Position); _DRLGParams.Add(temp12_DRLGParams); } stream.Position = offset + 16; serSceneParams = new SerializeData(); serSceneParams.FileRead(stream, stream.Position); stream.Position = offset + 24; //still checking variablearrays SceneParams = new List<SceneParams>(); for(int i = 0; i < (int)(serSceneParams.Field1 / 24); i++) { stream.Position = serSceneParams.Field0 + 16 + (24*i) ; SceneParams temp12_SceneParams; temp12_SceneParams = new SceneParams(); temp12_SceneParams.FileRead(stream, stream.Position); _SceneParams.Add(temp12_SceneParams); } stream.Position = offset + 32; Field4 = new LabelRuleSet(); Field4.FileRead(stream, stream.Position); stream.Position = offset + 56; Field5 = stream.ReadValueS32(); stream.Position = offset + 64; Field6 = new SceneClusterSet(); Field6.FileRead(stream, stream.Position); stream.Position = offset + 88; arNavMeshFuncs = new int[4]; for(int loop12=0; loop12 < 4; loop12++ ) { int temp12_arNavMeshFuncs; temp12_arNavMeshFuncs = stream.ReadValueS32(); _arNavMeshFuncs[loop12] = temp12_arNavMeshFuncs; } stream.Position = offset + 104; snoScript = stream.ReadValueS32(); stream.Position = offset + 108; Field9 = stream.ReadValueS32(); }