Decompiled source of NoHealthbarDelay v1.0.0

NoHealthbarDelay.dll

Decompiled 2 weeks ago
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 On.RoR2.UI;
using RoR2.UI;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("NoHealthbarDelay")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("NoHealthbarDelay")]
[assembly: AssemblyTitle("NoHealthbarDelay")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace NoHealthbarDelay;

[BepInPlugin("com.Nuxlar.NoHealthbarDelay", "NoHealthbarDelay", "1.0.0")]
public class NoHealthbarDelay : BaseUnityPlugin
{
	[Serializable]
	[CompilerGenerated]
	private sealed class <>c
	{
		public static readonly <>c <>9 = new <>c();

		public static hook_Awake <>9__0_0;

		internal void <Awake>b__0_0(orig_Awake orig, HealthBar self)
		{
			orig.Invoke(self);
			self.updateDelay = 0.01f;
		}
	}

	public void Awake()
	{
		//IL_0014: Unknown result type (might be due to invalid IL or missing references)
		//IL_0019: Unknown result type (might be due to invalid IL or missing references)
		//IL_001f: Expected O, but got Unknown
		object obj = <>c.<>9__0_0;
		if (obj == null)
		{
			hook_Awake val = delegate(orig_Awake orig, HealthBar self)
			{
				orig.Invoke(self);
				self.updateDelay = 0.01f;
			};
			<>c.<>9__0_0 = val;
			obj = (object)val;
		}
		HealthBar.Awake += (hook_Awake)obj;
	}
}