Exemple #1
0
        public void Destroy()
        {
            _ecsWorld.AddService <TestService3UpdateInitFinish>();

            _ecsWorld.Destroy();

            AssetStaticStore(0, 0, 1);
        }
Exemple #2
0
 private void OnDisable()
 {
     if (_systems != null)
     {
         _systems.Destroy();
         _systems = null;
         _world.Destroy();
         _world = null;
     }
 }
Exemple #3
0
 void OnDestroy()
 {
     // destroy systems logical group.
     _systems.Destroy();
     // destroy world.
     _world.Destroy();
 }
Exemple #4
0
 public void Dispose()
 {
     Systems.Destroy();
     Systems = null;
     World.Destroy();
     World = null;
 }
 public void Destroy()
 {
     _systems?.Destroy();
     _systems = null;
     _world?.Destroy();
     _world = null;
 }
Exemple #6
0
 void OnDisable()
 {
     _systems.Destroy();
     _systems = null;
     _world.Destroy();
     _world = null;
 }
Exemple #7
0
    private void OnDisable()
    {
        systems.Destroy();
        systems = null;

        ecsWorld.Destroy();
        ecsWorld = null;
    }
Exemple #8
0
        private void OnDisable()
        {
            _systems.Destroy();
            _systems = null;

            _ecsWorld.Destroy();
            _ecsWorld = null;
        }
Exemple #9
0
 void OnDestroy()
 {
     systems.Destroy();
     systems = null;
     fixedSystems.Destroy();
     fixedSystems = null;
     world.Destroy();
     world = null;
 }
Exemple #10
0
 private void OnDestroy()
 {
     if (_mainSystems != null)
     {
         _mainSystems.Destroy();
         _mainSystems = null;
         _world.Destroy();
         _world = null;
     }
 }
 void OnDestroy()
 {
     if (_systems != null)
     {
         _systems.Destroy();
         _systems = null;
         _world.Destroy();
         _world = null;
     }
 }
Exemple #12
0
 void OnDestroy()
 {
     if (_systems != null)
     {
         _systems.Destroy();
         _systems = null;
         _world.Destroy();
         _world = null;
     }
     GameState.OnGameStateChange -= SceneData.UI.OnGameStateChange;
 }
Exemple #13
0
 public void OnDestroy()
 {
     if (_systems == null)
     {
         return;
     }
     _systems.Destroy();
     _systems = null;
     _world.Destroy();
     _world = null;
 }
    void OnDestroy()
    {
        if (systemsUpdate != null)
        {
            systemsUpdate.Destroy();
            systemsUpdate = null;
        }

        World.Destroy();
        World = null;
    }
        void OnDestroy()
        {
            updateSystems.Destroy();
            updateSystems = null;

            fixedSystems.Destroy();
            fixedSystems = null;

            world.Destroy();
            world = null;
        }
Exemple #16
0
        public virtual void Dispose()
        {
            RootSystems.Destroy();
            RootSystems = null;
            _debugger   = null;

            if (_world != null && _world.IsAlive())
            {
                _world.Destroy();
                _world = null;
            }
        }
        private void OnDestroy()
        {
            if (_systems != null)
            {
                _systems.Destroy();
            }

            if (_world != null)
            {
                _world.Destroy();
            }
        }
 public void generateWorld()
 {
     if (ecsWorld != null)
     {
         ecsWorld.Destroy();
     }
     ecsWorld          = new EcsWorld();
     worldGenContainer = new WorldGenContainer();
     worldGenSequence  = new WorldGenSequence();
     worldGenSequence.run();
     world.worldMap = worldGenContainer.createWorldMap();
 }
Exemple #19
0
        private void OnDestroy()
        {
            if (_systems == null)
            {
                return;
            }

            _systems.Destroy();
            _systems = null;

            World.Destroy();
        }
Exemple #20
0
        private void OnDestroy()
        {
            if (_systems != null)
            {
                _systems.Destroy();
                _systems = null;
                _world.Destroy();
                _world = null;
            }

            _gameState.OnScoreChange -= _ui.SetScore;
            _gameState.OnCountChange -= _ui.SetCount;
        }
Exemple #21
0
        void OnDestroy()
        {
            if (systems == null)
            {
                return;
            }

            systems.Destroy();
            systems = null;

            world.Destroy();
            world = null;
        }
Exemple #22
0
        void OnDestroy()
        {
            if (_fixedUpdateSystems != null)
            {
                _fixedUpdateSystems.Destroy();
                _fixedUpdateSystems = null;
            }

            if (_updateSystems != null)
            {
                _updateSystems.Destroy();
                _updateSystems = null;
            }

            _world?.Destroy();
            _world = null;
        }
Exemple #23
0
 private void OnDestroy()
 {
     if (_update != null)
     {
         _update.Destroy();
         _update = null;
     }
     if (_fixedUpdate != null)
     {
         _fixedUpdate.Destroy();
         _fixedUpdate = null;
     }
     if (_world != null)
     {
         _world.Destroy();
         _world = null;
     }
 }
Exemple #24
0
        private static void Run(bool debug, bool whatIf, string directory, double holeDrillTime, double fastenersDrillTime, double endPositionX, double startPointXOffset) // Argument names are important for arguments mapping
        {
            ConfigureLogging(debug, whatIf);
            var logger = LogManager.GetCurrentClassLogger();

            logger.Info(Logging.ProgramStarted);

            if (debug)
            {
                logger.Info(Logging.DebugModeActivated);
            }

            var world   = new EcsWorld();
            var systems = new EcsSystems(world);

            var configurationService = new ConfigurationService(debug,
                                                                whatIf,
                                                                directory,
                                                                new netDxf.Vector2(endPositionX, 0),
                                                                holeDrillTime,
                                                                fastenersDrillTime,
                                                                startPointXOffset);
            var fileSystemService = new FileSystemService();
            var dxfService        = new DxfService();

            var consoleStayOpenForce = false;

            systems.Add(new DxfSearchProcessing(() => consoleStayOpenForce = true))
            .Add(new DxfLoadProcessing())
            .Add(new DxfValidationProcessing(e => consoleStayOpenForce = true))
            .Add(new DxfParseProcessing())
            .Add(new NcBuildProcessing())
            .Add(new NcSaveProcessing(), nameof(NcSaveProcessing))

            .Inject(configurationService)
            .Inject(fileSystemService)
            .Inject(dxfService);

            if (whatIf)
            {
                logger.Info(Logging.WhatIfModeActivated);

                var idx = systems.GetNamedRunSystem(nameof(NcSaveProcessing));
                systems.SetRunSystemState(idx, false);
            }

            try
            {
                systems.Init();
                systems.Run();
            }
            catch (Exception e)
            {
                consoleStayOpenForce = true;
                logger.Fatal(e);
                throw;
            }
            finally
            {
                systems.Destroy();
                world.Destroy();

                logger.Info(Logging.ProgramFinished);

                if (consoleStayOpenForce || debug || whatIf)
                {
                    Console.WriteLine(Logging.PressAnyKeyToExit);
                    Console.Read();
                }
            }
        }
Exemple #25
0
 void OnDisable()
 {
     _world.Destroy();
 }
Exemple #26
0
        void OnDestroy()
        {
            system.Destroy();

            world.Destroy();
        }
Exemple #27
0
 public void OnDestroy()
 {
     systems.Destroy();
     world.Destroy();
 }
 public void LateDispose()
 {
     _systems.Destroy();
     _world.Destroy();
 }
Exemple #29
0
 private void OnDestroy()
 {
     systems.Destroy();
     world.Destroy();
 }
Exemple #30
0
 public virtual void Destroy()
 {
     systems?.Destroy();
     world?.Destroy();
 }