refactor(CheatEnabler): adopt ModFeatureRegistry from UXAssist

This commit is contained in:
2026-06-23 03:33:19 +08:00
parent 39bdf06e88
commit 099f3ee35a
12 changed files with 29 additions and 10 deletions
+2
View File
@@ -4,9 +4,11 @@ using System.Reflection.Emit;
using BepInEx.Configuration;
using HarmonyLib;
using UXAssist.Common;
using UXAssist.Common.ModFeatures;
namespace CheatEnabler.Patches;
[ModFeature("Combat")]
public static class CombatPatch
{
public static ConfigEntry<bool> MechaInvincibleEnabled;
+2
View File
@@ -4,10 +4,12 @@ using System.Reflection.Emit;
using BepInEx.Configuration;
using HarmonyLib;
using UXAssist.Common;
using UXAssist.Common.ModFeatures;
using GameLogicProc = UXAssist.Common.GameLogic;
namespace CheatEnabler.Patches;
[ModFeature("DysonSphere")]
public class DysonSpherePatch : PatchImpl<DysonSpherePatch>
{
public static ConfigEntry<bool> SkipBulletEnabled;
+2
View File
@@ -8,10 +8,12 @@ using HarmonyLib;
using UnityEngine;
using UnityEngine.UI;
using UXAssist.Common;
using UXAssist.Common.ModFeatures;
using GameLogicProc = UXAssist.Common.GameLogic;
namespace CheatEnabler.Patches;
[ModFeature("Factory")]
public class FactoryPatch : PatchImpl<FactoryPatch>
{
public static ConfigEntry<bool> ImmediateEnabled;
+2
View File
@@ -5,9 +5,11 @@ using BepInEx.Configuration;
using HarmonyLib;
using UnityEngine.Bindings;
using UXAssist.Common;
using UXAssist.Common.ModFeatures;
namespace CheatEnabler.Patches;
[ModFeature("Game")]
public static class GamePatch
{
public static ConfigEntry<bool> DevShortcutsEnabled;
+2
View File
@@ -4,9 +4,11 @@ using System.Reflection.Emit;
using BepInEx.Configuration;
using HarmonyLib;
using UXAssist.Common;
using UXAssist.Common.ModFeatures;
namespace CheatEnabler.Patches;
[ModFeature("Planet")]
public static class PlanetPatch
{
public static ConfigEntry<bool> WaterPumpAnywhereEnabled;
+2
View File
@@ -3,9 +3,11 @@ using System.Reflection.Emit;
using BepInEx.Configuration;
using HarmonyLib;
using UXAssist.Common;
using UXAssist.Common.ModFeatures;
namespace CheatEnabler.Patches;
[ModFeature("Player")]
public static class PlayerPatch
{
public static ConfigEntry<bool> InstantHandCraftEnabled;
+2
View File
@@ -3,9 +3,11 @@ using System.Reflection.Emit;
using BepInEx.Configuration;
using HarmonyLib;
using UXAssist.Common;
using UXAssist.Common.ModFeatures;
namespace CheatEnabler.Patches;
[ModFeature("Resource")]
public static class ResourcePatch
{
public static ConfigEntry<bool> InfiniteResourceEnabled;