コード例 #1
0
 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();
 }
コード例 #2
0
 public void Game_Exit()
 {
     ModApi.Log("Mod exited:Game_Exit");
     StopScriptsEvent?.Invoke(this, EventArgs.Empty);
 }
コード例 #3
0
 public void Shutdown()
 {
     ModApi.Log("Mod exited:Shutdown");
     StopScriptsEvent.Invoke(this, EventArgs.Empty);
 }