public void Destroy() { _ecsWorld.AddService <TestService3UpdateInitFinish>(); _ecsWorld.Destroy(); AssetStaticStore(0, 0, 1); }
private void OnDisable() { if (_systems != null) { _systems.Destroy(); _systems = null; _world.Destroy(); _world = null; } }
void OnDestroy() { // destroy systems logical group. _systems.Destroy(); // destroy world. _world.Destroy(); }
public void Dispose() { Systems.Destroy(); Systems = null; World.Destroy(); World = null; }
public void Destroy() { _systems?.Destroy(); _systems = null; _world?.Destroy(); _world = null; }
void OnDisable() { _systems.Destroy(); _systems = null; _world.Destroy(); _world = null; }
private void OnDisable() { systems.Destroy(); systems = null; ecsWorld.Destroy(); ecsWorld = null; }
private void OnDisable() { _systems.Destroy(); _systems = null; _ecsWorld.Destroy(); _ecsWorld = null; }
void OnDestroy() { systems.Destroy(); systems = null; fixedSystems.Destroy(); fixedSystems = null; world.Destroy(); world = null; }
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; } }
void OnDestroy() { if (_systems != null) { _systems.Destroy(); _systems = null; _world.Destroy(); _world = null; } GameState.OnGameStateChange -= SceneData.UI.OnGameStateChange; }
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; }
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(); }
private void OnDestroy() { if (_systems == null) { return; } _systems.Destroy(); _systems = null; World.Destroy(); }
private void OnDestroy() { if (_systems != null) { _systems.Destroy(); _systems = null; _world.Destroy(); _world = null; } _gameState.OnScoreChange -= _ui.SetScore; _gameState.OnCountChange -= _ui.SetCount; }
void OnDestroy() { if (systems == null) { return; } systems.Destroy(); systems = null; world.Destroy(); world = null; }
void OnDestroy() { if (_fixedUpdateSystems != null) { _fixedUpdateSystems.Destroy(); _fixedUpdateSystems = null; } if (_updateSystems != null) { _updateSystems.Destroy(); _updateSystems = null; } _world?.Destroy(); _world = null; }
private void OnDestroy() { if (_update != null) { _update.Destroy(); _update = null; } if (_fixedUpdate != null) { _fixedUpdate.Destroy(); _fixedUpdate = null; } if (_world != null) { _world.Destroy(); _world = null; } }
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(); } } }
void OnDisable() { _world.Destroy(); }
void OnDestroy() { system.Destroy(); world.Destroy(); }
public void OnDestroy() { systems.Destroy(); world.Destroy(); }
public void LateDispose() { _systems.Destroy(); _world.Destroy(); }
private void OnDestroy() { systems.Destroy(); world.Destroy(); }
public virtual void Destroy() { systems?.Destroy(); world?.Destroy(); }