public static void OnAbortScript(Script script) { ScriptDomain domain = script._scriptdomain; if (ReferenceEquals(script, domain.Console)) { return; } domain.Console.UnregisterCommands(script.GetType()); Log("[INFO]", "Aborted script '", script.Name, "'."); }
public static void OnStartScript(Script script) { ScriptDomain domain = script._scriptdomain; domain._runningScripts.Add(script); if (ReferenceEquals(script, domain.Console)) { return; } domain.Console.RegisterCommands(script.GetType()); Log("[INFO]", "Started script '", script.Name, "'."); }
public string LookupScriptFilename(Script script) => this.LookupScriptFilename(script.GetType());
public string LookupScriptFilename(Script script) { return(LookupScriptFilename(script.GetType())); }