using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.NET.Common;
using BepInExResoniteShim;
using FrooxEngine;
using HarmonyLib;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]
[assembly: AssemblyCompany("zyntaks, Gyztor Mizirath")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("2.0.1.0")]
[assembly: AssemblyInformationalVersion("2.0.1+182f1173aeaeef90a0f57ea35f393b7d800ac675")]
[assembly: AssemblyProduct("NoTankControls")]
[assembly: AssemblyTitle("NoTankControls")]
[assembly: AssemblyMetadata("RepositoryUrl", "https://github.com/Gyztor/NoTankControls")]
[assembly: AssemblyVersion("2.0.1.0")]
[module: RefSafetyRules(11)]
namespace NoTankControls;
[ResonitePlugin("U-xyla.NoTankControls", "NoTankControls", "2.0.1", "zyntaks, Gyztor Mizirath", "https://github.com/Gyztor/NoTankControls")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class NoTankControls : BasePlugin
{
[HarmonyBefore(new string[] { "BepInEx.Plugin.art0007i.InspectorScroll", "me.art0007i.InspectorScroll" })]
[HarmonyPatch(typeof(InteractionHandler))]
[HarmonyPatch("BeforeInputUpdate")]
private class NoTankControlsPatch
{
[HarmonyPatch]
public static void Postfix(InteractionHandler __instance, ref InteractionHandlerInputs ____inputs)
{
if (NoTankControlsEnabled.Value && ((InputAction)____inputs.Axis).RegisterBlocks)
{
((InputAction)____inputs.Axis).RegisterBlocks = false;
}
}
}
internal static ConfigEntry<bool> NoTankControlsEnabled;
public override void Load()
{
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_0026: Expected O, but got Unknown
NoTankControlsEnabled = ((BasePlugin)this).Config.Bind<bool>("General", "Enabled", true, new ConfigDescription("Enables NoTankControls", (AcceptableValueBase)null, global::System.Array.Empty<object>()));
((BasePlugin)this).HarmonyInstance.PatchAll();
}
}
public static class PluginMetadata
{
public const string GUID = "U-xyla.NoTankControls";
public const string NAME = "NoTankControls";
public const string VERSION = "2.0.1";
public const string AUTHORS = "zyntaks, Gyztor Mizirath";
public const string REPOSITORY_URL = "https://github.com/Gyztor/NoTankControls";
}