Example #1
0
        protected World()
        {
            entityPool.Initialize(this);
            BoltNetwork.SetPrefabPool(entityPool);

            UnitManager  = new UnitManager();
            MapManager   = new MapManager(this);
            SpellManager = new SpellManager(this);
        }
Example #2
0
        public virtual void Dispose()
        {
            SpellManager.Dispose();
            UnitManager.Dispose();
            MapManager.Dispose();

            BoltNetwork.SetPrefabPool(defaultPool);
            entityPool.Deinitialize();
        }
Example #3
0
        public virtual void Dispose()
        {
            EventHandler.ExecuteEvent(EventHandler.GlobalDispatcher, GameEvents.WorldDeinitializing, this);

            SpellManager.Dispose();
            UnitManager.Dispose();
            MapManager.Dispose();

            BoltNetwork.SetPrefabPool(defaultPool);
            entityPool.Deinitialize();
        }