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