using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using GamblersParadise;
using HarmonyLib;
using MelonLoader;
using Photon.Pun;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: MelonInfo(typeof(Class1), "Gamblers Paradise", "1.1", "TheMrEvil", null)]
[assembly: MelonGame("Alvios", "Vellum")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("GamblersParadise")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+b6dc949afe78cc9f5b605068e920b9467ab0b4f3")]
[assembly: AssemblyProduct("GamblersParadise")]
[assembly: AssemblyTitle("GamblersParadise")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace GamblersParadise;
public class Class1 : MelonMod
{
public override void OnInitializeMelon()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
//IL_0043: Unknown result type (might be due to invalid IL or missing references)
//IL_004f: Expected O, but got Unknown
new Harmony("GamblersParadise.LoadLevelPatch").Patch((MethodBase)AccessTools.Method(typeof(PhotonNetwork), "LoadLevel", new Type[1] { typeof(string) }, (Type[])null), (HarmonyMethod)null, new HarmonyMethod(typeof(Class1), "LoadLevel_Postfix", (Type[])null), (HarmonyMethod)null, (HarmonyMethod)null);
}
public static void LoadLevel_Postfix()
{
SignatureInkUIControl instance = SignatureInkUIControl.instance;
if ((Object)(object)instance != (Object)null)
{
instance.RandomLoadout();
}
MelonLogger.Msg("LoadLevel called - Random loadout applied.");
}
}