public static void RestartAllScriptsForPlayfieldServer() { StopScriptsEvent?.Invoke(EmpyrionScriptingInstance, EventArgs.Empty); EmpyrionScriptingInstance.PauseScripts = false; Configuration.Load(); ModApi?.Log($"EmpyrionScripting Mod.Restart Threads: {EmpyrionScriptingInstance.LastAlive} <-> {DateTime.Now} : {Configuration.Current.LogLevel}"); EmpyrionScriptingInstance.StartAllScriptsForPlayfieldServer(); }
public void Game_Exit() { ModApi.Log("Mod exited:Game_Exit"); StopScriptsEvent?.Invoke(this, EventArgs.Empty); }
public void Shutdown() { ModApi.Log("Mod exited:Shutdown"); StopScriptsEvent.Invoke(this, EventArgs.Empty); }