public override void Parse(GameBitBuffer buffer) { serSceneChunks = new SerializeData(); serSceneChunks.Parse(buffer); //still checking variablearrays this.SceneChunks = new List<SceneChunk>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _SceneChunks.Count; loop12++) { _SceneChunks[loop12] = new SceneChunk(); _SceneChunks[loop12].Parse(buffer); } Field2 = buffer.ReadInt(32); }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; serSceneChunks = new SerializeData(); serSceneChunks.FileRead(stream, stream.Position); stream.Position = offset + 16; //still checking variablearrays SceneChunks = new List<SceneChunk>(); for(int i = 0; i < (int)(serSceneChunks.Field1 / 244); i++) { stream.Position = serSceneChunks.Field0 + 16 + (244*i) ; SceneChunk temp12_SceneChunks; temp12_SceneChunks = new SceneChunk(); temp12_SceneChunks.FileRead(stream, stream.Position); _SceneChunks.Add(temp12_SceneChunks); } stream.Position = offset + 8; Field2 = stream.ReadValueS32(); }