Decompiled source of NoBazaarKickout v1.0.4

NoBazaarKickout.dll

Decompiled 4 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using EntityStates;
using EntityStates.NewtMonster;
using On.EntityStates.NewtMonster;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("NoBazaarKickout")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("NoBazaarKickout")]
[assembly: AssemblyTitle("NoBazaarKickout")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace NoBazaarKickout
{
	[BepInPlugin("com.Moffein.NoBazaarKickout", "NoBazaarKickout", "1.0.4")]
	public class NoBazaarKickout : BaseUnityPlugin
	{
		[Serializable]
		[CompilerGenerated]
		private sealed class <>c
		{
			public static readonly <>c <>9 = new <>c();

			public static hook_FixedUpdate <>9__0_0;

			internal void <Awake>b__0_0(orig_FixedUpdate orig, KickFromShop self)
			{
				((EntityState)self).outer.SetNextStateToMain();
			}
		}

		public void Awake()
		{
			//IL_0015: Unknown result type (might be due to invalid IL or missing references)
			//IL_001a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0020: Expected O, but got Unknown
			object obj = <>c.<>9__0_0;
			if (obj == null)
			{
				hook_FixedUpdate val = delegate(orig_FixedUpdate orig, KickFromShop self)
				{
					((EntityState)self).outer.SetNextStateToMain();
				};
				<>c.<>9__0_0 = val;
				obj = (object)val;
			}
			KickFromShop.FixedUpdate += (hook_FixedUpdate)obj;
		}
	}
}
namespace R2API.Utils
{
	[AttributeUsage(AttributeTargets.Assembly)]
	public class ManualNetworkRegistrationAttribute : Attribute
	{
	}
}