public void Dispose()
 {
     if (ogreFramework != null)
     {
         ogreFramework.Dispose();
         ogreFramework = null;
     }
 }
 public void initialize(PluginManager pluginManager, IServiceCollection serviceCollection)
 {
     serviceCollection.TryAddSingleton <OgreFramework>(s => {
         var ogreFramework = new OgreFramework();
         mainTimer.addUpdateListener(new OgreFrameworkUpdateListener(ogreFramework));
         return(ogreFramework);
     });
 }
Exemplo n.º 3
0
 public OgreFrameworkUpdateListener(OgreFramework ogreFramework)
 {
     this.ogreFramework = ogreFramework;
 }