protected override void OnLoad(EventArgs e) { // this is called when the window starts running _sceneManager = SceneManagerFactory.Produce(this); //_sceneManager.LoadScene("menu"); _sceneManager.LoadScene("board"); }
///<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); }
/// <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); }
public void removeSceneManagerFactory(SceneManagerFactory fact) { OgrePINVOKE.Root_removeSceneManagerFactory(swigCPtr, SceneManagerFactory.getCPtr(fact)); if (OgrePINVOKE.SWIGPendingException.Pending) { throw OgrePINVOKE.SWIGPendingException.Retrieve(); } }
public void addFactory(SceneManagerFactory fact) { OgrePINVOKE.SceneManagerEnumerator_addFactory(swigCPtr, SceneManagerFactory.getCPtr(fact)); if (OgrePINVOKE.SWIGPendingException.Pending) { throw OgrePINVOKE.SWIGPendingException.Retrieve(); } }
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(); }
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); }