Esempio n. 1
0
        public override bool Read(FileStream stream)
        {
            base.Read(stream);

            ReadChunk(0xC);

            Modules = ReadDependencyBlock(0x0, false);
            ObjectMeta meta = ReadObjectMeta();

            Dependencies = meta.Dependencies;

            return(true);
        }
Esempio n. 2
0
        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);
        }