Beispiel #1
0
 internal static void PrepareSpamHandler(PPatchManager manager)
 {
     manager.RegisterPatchClass(typeof(SpamObjectsHandler));
     SpamObjectsAction = new PActionManager().CreateAction(
         "NotEnoughTags.SpamObjectsAction", "Spam objects under cursor",
         new PKeyBinding(KKeyCode.Y, Modifier.Ctrl));
 }
        public override void OnLoad(Harmony instance)
        {
            base.OnLoad(instance);
            PUtil.InitLibrary();
            var pm = new PPatchManager(instance);

            pm.RegisterPatchClass(typeof(StockBugsPatches));
            pm.RegisterPatchClass(typeof(SweepFixPatches));
            FixModUpdateRace(instance);
            PRegistry.PutData("Bugs.TepidizerPulse", true);
            PRegistry.PutData("Bugs.TraitExclusionSpacedOut", true);
            PRegistry.PutData("Bugs.TropicalPacuRooms", true);
            PRegistry.PutData("Bugs.AutosaveDragFix", true);
            new POptions().RegisterOptions(this, typeof(StockBugFixOptions));
            new PVersionCheck().Register(this, new SteamVersionChecker());
        }
        public override void OnLoad(Harmony instance)
        {
            base.OnLoad(instance);
            PUtil.InitLibrary();
            var pm = new PPatchManager(instance);

            pm.RegisterPatchClass(typeof(StockBugsPatches));
#if false
            pm.RegisterPatchClass(typeof(SweepFixPatches));
#endif
            FixModUpdateRace(instance);
            PRegistry.PutData("Bugs.FishReleaseCount", true);
            PRegistry.PutData("Bugs.TepidizerPulse", true);
            PRegistry.PutData("Bugs.TraitExclusionSpacedOut", true);
            PRegistry.PutData("Bugs.JoyReactionFix", true);
            new POptions().RegisterOptions(this, typeof(StockBugFixOptions));
            new PVersionCheck().Register(this, new SteamVersionChecker());
        }