예제 #1
0
        private static void Init_Postfix()
        {
            ConsoleBridge.suppressLogs = false;

            SceneManager.activeSceneChanged -= ConsoleWindow.AttachWindow;
            ConsoleBridge.PopulateCommands();
            ModLoader.Reload += ConsoleBridge.ReloadMods;
        }
        private static void InvokeCatchers_Postfix(ref bool @return, string cmd, string[] args)
        {
            if (!@return)
            {
                return;
            }

            @return = ConsoleBridge.RunCatchers(cmd, args);
        }
예제 #3
0
 private static bool RegisterCommand_Prefix(ConsoleCommand cmd)
 {
     ConsoleBridge.RegisterCommand(cmd.ID, cmd);
     return(false);
 }