private static void LoadScript(BaseScript script) { Log.Write(LogLevel.Info, "Loading script {0}", script.GetType().Name); ScriptProcessor.AddScript(script); }
void Instance_ScriptCrashed(BaseScript script, Exception exception) { Game.DisplayTextBox("Script " + script.GetType().Name + " crashed. Check the log for details."); }