Inheritance: ModelEx.Scene
Esempio n. 1
0
        public void SetCurrentObject(string objectName)
        {
            if (CurrentObject != null)
            {
                CurrentObject = null;
            }

            if (objectName != "" && Resources.ContainsKey(objectName))
            {
                RenderResourceCDC renderResource = (RenderResourceCDC)Resources[objectName];
                CurrentObject = new SceneCDC(renderResource.File, false);
            }
        }
Esempio n. 2
0
        public void SetCurrentScene(string sceneName)
        {
            if (CurrentScene != null)
            {
                CurrentScene.Dispose();
                CurrentScene = null;
            }

            if (sceneName != "" && Resources.ContainsKey(sceneName))
            {
                RenderResourceCDC renderResource = (RenderResourceCDC)Resources[sceneName];
                CurrentScene = new SceneCDC(renderResource.File, true);
            }
        }