示例#1
0
        public static void patch()
        {
            HarmonyHelper.patchAll(true);
            MiscStuff.init();

            PersistentConsoleCommands.register <ConsoleCommands>();
        }
示例#2
0
        public static void patch()
        {
            HarmonyHelper.patchAll(true);
            LanguageHelper.init();
            CraftHelper.patchAll();

            PersistentConsoleCommands.register <ConsoleCommands>();
        }
 static void init()
 {
     if (consoleObject == null)
     {
         consoleObject             = PersistentConsoleCommands.createGameObject <ConsoleCommands>();
         DevConsole.disableConsole = !Main.config.consoleEnabled;
     }
 }
示例#4
0
        public static void patch()
        {
            HarmonyHelper.patchAll(true);

            if (config.addConsoleCommands)
            {
                PersistentConsoleCommands.register <ConsoleCommands>();
            }
        }
示例#5
0
        public static void patch()
        {
            LanguageHelper.init();
            PersistentConsoleCommands.register <ConsoleCommands>();

            HarmonyHelper.patchAll(true);
            CraftHelper.patchAll();

            GravTrapObjectsType.init(typesConfig);
        }
示例#6
0
 static void init() => PersistentConsoleCommands.register <CfgVarCommands>();
 public static void init()
 {
     consoleCommands ??= PersistentConsoleCommands.createGameObject <SetGetCfgVarCommand>("ConfigConsoleCommands_" + Mod.id);
 }