protected World() { entityPool.Initialize(this); BoltNetwork.SetPrefabPool(entityPool); UnitManager = new UnitManager(); MapManager = new MapManager(this); SpellManager = new SpellManager(this); }
public virtual void Dispose() { SpellManager.Dispose(); UnitManager.Dispose(); MapManager.Dispose(); BoltNetwork.SetPrefabPool(defaultPool); entityPool.Deinitialize(); }
public virtual void Dispose() { EventHandler.ExecuteEvent(EventHandler.GlobalDispatcher, GameEvents.WorldDeinitializing, this); SpellManager.Dispose(); UnitManager.Dispose(); MapManager.Dispose(); BoltNetwork.SetPrefabPool(defaultPool); entityPool.Deinitialize(); }