Esempio n. 1
0
 protected override void OnLoad(EventArgs e)
 {
     // this is called when the window starts running
     _sceneManager = SceneManagerFactory.Produce(this);
     //_sceneManager.LoadScene("menu");
     _sceneManager.LoadScene("board");
 }
Esempio n. 2
0
        ///<summary>
        ///		Removes a <see cref="SceneManagerFactory"/>.
        ///</summary>
        public void RemoveFactory(SceneManagerFactory fact)
        {
            // destroy all instances for this factory
            var tempList = new SceneManagerCollection();

            tempList.AddRange(this._instances);
            foreach (var sm in tempList.Values)
            {
                if (sm.TypeName == fact.MetaData.typeName)
                {
                    fact.DestroyInstance(sm);
                    this._instances.Remove(sm.Name);
                }
            }

            // remove from metadata
            for (var i = 0; i < this._metaDataList.Count; i++)
            {
                if (this._metaDataList[i].Equals(fact.MetaData))
                {
                    this._metaDataList.Remove(this._metaDataList[i]);
                    break;
                }
            }

            this._factories.Remove(fact);
        }
Esempio n. 3
0
        /// <summary>
        ///		Registers a new <see cref="SceneManagerFactory"/>.
        /// </summary>
        /// <remarks>
        ///		Plugins should call this to register as new <see cref="SceneManager"/> providers.
        /// </remarks>
        public void AddFactory(SceneManagerFactory factory)
        {
            this._factories.Add(factory);
            this._metaDataList.Add(factory.MetaData);

            LogManager.Instance.Write("SceneManagerFactory for type '{0}' registered", factory.MetaData.typeName);
        }
Esempio n. 4
0
 public void removeSceneManagerFactory(SceneManagerFactory fact)
 {
     OgrePINVOKE.Root_removeSceneManagerFactory(swigCPtr, SceneManagerFactory.getCPtr(fact));
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 5
0
 public void addFactory(SceneManagerFactory fact)
 {
     OgrePINVOKE.SceneManagerEnumerator_addFactory(swigCPtr, SceneManagerFactory.getCPtr(fact));
     if (OgrePINVOKE.SWIGPendingException.Pending)
     {
         throw OgrePINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 6
0
        private void defaultLayoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //toolboxToolStripMenuItem.Checked = true;
            inspectorToolStripMenuItem.Checked = true;
            //consoleToolStripMenuItem.Checked = true;
            explorerToolStripMenuItem.Checked = true;
            //designViewportToolStripMenuItem.Checked = true;

            SceneManagerFactory.CreateFPS();
            Explorer.ReloadExplorer();
        }
Esempio n. 7
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SceneManagerFactory obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }