예제 #1
0
        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, "'.");
        }
예제 #2
0
        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, "'.");
        }
예제 #3
0
 public string LookupScriptFilename(Script script) =>
 this.LookupScriptFilename(script.GetType());
예제 #4
0
 public string LookupScriptFilename(Script script)
 {
     return(LookupScriptFilename(script.GetType()));
 }