Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of QuickSwitch v1.0.1
QuickSwitchMod.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using InvHotkeys.Patches; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("QuickSwitchMod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("FONMU-")] [assembly: AssemblyProduct("QuickSwitchMod")] [assembly: AssemblyCopyright("Copyright © FONMU- 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("62b2dfae-44b0-4424-92f3-ab41e0687074")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace InvHotkeys { [BepInPlugin("Asuran.InvHotkeys", "Inventory Hotkeys", "1.0.0")] public class InvHotkeysBase : BaseUnityPlugin { private const string modGUID = "Asuran.InvHotkeys"; private const string modName = "Inventory Hotkeys"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("Asuran.InvHotkeys"); private static InvHotkeysBase instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)instance == (Object)null) { instance = this; } mls = Logger.CreateLogSource("Asuran.InvHotkeys"); mls.LogInfo((object)"InvHotkey mod has spawned."); harmony.PatchAll(typeof(InvHotkeysBase)); harmony.PatchAll(typeof(InventoryControllerBPatch)); } } } namespace InvHotkeys.Patches { [HarmonyPatch(typeof(PlayerControllerB))] internal class InventoryControllerBPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void FastSwitchPatch(ref float ___timeSinceSwitchingSlots) { ___timeSinceSwitchingSlots = 1f; } } }