using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using Character;
using DisputeLib;
using HarmonyLib;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("EnableDevMenu")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("EnableDevMenu")]
[assembly: AssemblyCopyright("Copyright © 2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("aea28bae-eeaf-49bc-bd1d-5c0870f52a8c")]
[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 ConfigurableRagdollMod;
[BepInPlugin("com.unii.agd.enabledevmenu", "Enable Dev Menu", "1.0.0")]
public class ConfigurableRagdollPlugin : BaseUnityPlugin
{
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct PluginInfo
{
public const string PLUGIN_GUID = "com.unii.agd.enabledevmenu";
public const string PLUGIN_NAME = "Enable Dev Menu";
public const string PLUGIN_VERSION = "1.0.0";
}
private void Awake()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
new Harmony("com.unii.agd.enabledevmenu").PatchAll(typeof(RagdollPatch));
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin Enable Dev Menu loaded!");
}
}
[HarmonyPatch(typeof(RagdollController))]
public class RagdollPatch
{
[HarmonyPatch(typeof(GameSingleton), "Awake")]
[HarmonyPostfix]
private static void EnableCheatsPatch(GameSingleton __instance)
{
__instance.enableCheats = true;
Debug.Log((object)"GameSingleton is awake! Cheats forcefully enabled.");
}
}