Exemplo n.º 1
0
 public void Dispose()
 {
     _system.Dispose();
     _executionQueue.Dispose();
     _planning?.Dispose();
     _runner.Cancel();
 }
Exemplo n.º 2
0
 protected override void DisposeManaged()
 {
     updateSystems.Dispose();
     renderSystems.Dispose();
     tagContainer.Dispose();
     zzContainer.OnResize -= HandleResize;
 }
Exemplo n.º 3
0
 public void Dispose()
 {
     _inner.Dispose();
     foreach (var extension in _handling.Extensions)
     {
         extension.Dispose();
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// Disposes all the inner <see cref="ISystem{T}"/> instances.
        /// </summary>
        public override void Dispose()
        {
            _mainSystem?.Dispose();

            foreach (ISystem <T> system in _systems)
            {
                system?.Dispose();
            }
        }
Exemplo n.º 5
0
        /// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
        public override void Dispose()
        {
            mainSystem?.Dispose();

            foreach (ISystem <TState> system in systems)
            {
                system?.Dispose();
            }
        }
Exemplo n.º 6
0
        protected override void Dispose(bool disposing)
        {
            _runner.Dispose();
            _world.Dispose();
            _system.Dispose();
            _square.Dispose();
            _batch.Dispose();
            _deviceManager.Dispose();

            base.Dispose(disposing);
        }
Exemplo n.º 7
0
 public void Dispose()
 {
     _system.Dispose();
     _executionQueue.Dispose();
     if (_planning != null)
     {
         _planning.Dispose();
     }
     if (_reader != null)
     {
         _reader.Dispose();
     }
     _runner.Cancel();
 }
Exemplo n.º 8
0
        private static void ConfigureNewMap()
        {
            World?.Dispose();
            World      = new World(64);
            EntitySets = new EntitySets(World);
            Map?.Dispose();
            Map = new MapContext(Content, GameObjects, Game.GraphicsDevice);
            SystemsSet?.Dispose();
            SystemsSet        = ConfigureSystems();
            GameObjects.World = World;
            Map.LoadMap(mapName);

            World.Subscribe <(WalkAction, Entity)>((in (WalkAction, Entity)payload) =>
            {
                var(action, entity) = payload;
                var triggers        = EntitySets.Triggers.GetEntities();
                for (var i = 0; i < triggers.Length; i++)
                {
                    triggers[i].Get <Trigger>().Check(triggers[i], action, entity);
                }
            });
Exemplo n.º 9
0
 public virtual void RemoveHecsSystem(ISystem system)
 {
     RegisterService.UnRegisterSystem(system);
     system.Dispose();
     systems.Remove(system);
 }
Exemplo n.º 10
0
 public void Dispose()
 {
     _system.Dispose();
 }