Пример #1
0
        public override bool Open()
        {
            //make sure to load materials.
            MaterialData.Load();

            //we now build scene data from GameExplorer rather than d3d viewer.
            SceneData.ScenePath = file.DirectoryName;
            SceneData.BuildData(bForceBigEndian);

            //d3d viewer expects data inside scenedata.
            MapEditor d3dForm = new MapEditor(file);

            d3dForm.Dispose();
            return(true);
        }