using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using Client.Player.Interactions;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UI.Popup;
using UnityEngine;
using VoidManager;
using VoidManager.MPModChecks;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("IKnowWhatImDoing")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Template")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("IKnowWhatImDoing")]
[assembly: AssemblyTitle("IKnowWhatImDoing")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace IKnowWhatImDoing
{
internal static class MyPluginInfo
{
internal const string PLUGIN_GUID = "id107.iknowwhatimdoing";
internal const string PLUGIN_NAME = "IKnowWhatI'mDoing";
internal const string PLUGIN_VERSION = "0.0.0";
}
[BepInPlugin("id107.iknowwhatimdoing", "IKnowWhatI'mDoing", "0.0.0")]
[BepInProcess("Void Crew.exe")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class BepinPlugin : BaseUnityPlugin
{
internal static ManualLogSource Log;
private void Awake()
{
Log = ((BaseUnityPlugin)this).Logger;
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "id107.iknowwhatimdoing");
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin id107.iknowwhatimdoing is loaded!");
}
}
[HarmonyPatch(typeof(ConfirmPopup))]
internal class ConfirmPopupPatch
{
private static readonly MethodInfo ConfirmedMethod = AccessTools.Method(typeof(ConfirmPopup), "Confirmed", (Type[])null, (Type[])null);
[HarmonyPostfix]
[HarmonyPatch("Show", new Type[]
{
typeof(string),
typeof(string),
typeof(Action),
typeof(Action),
typeof(Sprite)
})]
private static void Show1(ConfirmPopup __instance)
{
ConfirmedMethod.Invoke(__instance, null);
}
[HarmonyPostfix]
[HarmonyPatch("Show", new Type[]
{
typeof(ContextInfo),
typeof(Action),
typeof(Action),
typeof(Sprite)
})]
private static void Show2(ConfirmPopup __instance)
{
ConfirmedMethod.Invoke(__instance, null);
}
}
public class VoidManagerPlugin : VoidPlugin
{
public override MultiplayerType MPType => (MultiplayerType)3;
public override string Author => "18107";
public override string Description => "Skips all confirmation popups";
}
}