public override bool Read(FileStream stream) { base.Read(stream); ReadChunk(0xC); Modules = ReadDependencyBlock(0x0, false); ObjectMeta meta = ReadObjectMeta(); Dependencies = meta.Dependencies; return(true); }
private SceneObject ReadObject() { string objectName = ReadString(); SceneObject obj = new SceneObject() { Name = objectName }; //Console.WriteLine(objectName); ReadChunk(0x10); obj.Modules = ReadDependencyBlock(0x0, false); //CurrentPos(); //Console.WriteLine("Size: " + ToHex(dataSize)); ObjectMeta meta = ReadObjectMeta(); obj.Dependencies = meta.Dependencies; obj.Transform = meta.transform; return(obj); }