Decompiled source of NoLockedDoors v1.0.1

BepInEx/plugins/NoLockedDoors.dll

Decompiled 2 years ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using NoLockedDoors.Patches;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
[assembly: AssemblyCompany("NoLockedDoors")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("NoLockedDoors")]
[assembly: AssemblyTitle("NoLockedDoors")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Embedded]
	internal sealed class EmbeddedAttribute : System.Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Embedded]
	[AttributeUsage(/*Could not decode attribute arguments.*/)]
	internal sealed class NullableAttribute : System.Attribute
	{
		public readonly byte[] NullableFlags;

		public NullableAttribute(byte P_0)
		{
			NullableFlags = new byte[1] { P_0 };
		}

		public NullableAttribute(byte[] P_0)
		{
			NullableFlags = P_0;
		}
	}
	[CompilerGenerated]
	[Embedded]
	[AttributeUsage(/*Could not decode attribute arguments.*/)]
	internal sealed class NullableContextAttribute : System.Attribute
	{
		public readonly byte Flag;

		public NullableContextAttribute(byte P_0)
		{
			Flag = P_0;
		}
	}
	[CompilerGenerated]
	[Embedded]
	[AttributeUsage(/*Could not decode attribute arguments.*/)]
	internal sealed class RefSafetyRulesAttribute : System.Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace NoLockedDoors
{
	[BepInPlugin("tamion.NoLockedDoors", "NoLockedDoors", "1.0.1")]
	public class NoLockedDoorsBase : BaseUnityPlugin
	{
		private const string modGUID = "tamion.NoLockedDoors";

		private const string modName = "NoLockedDoors";

		private const string modVersion = "1.0.1";

		private readonly Harmony harmony = new Harmony("tamion.NoLockedDoors");

		internal ManualLogSource logger;

		private void Awake()
		{
			logger = Logger.CreateLogSource("tamion.NoLockedDoors");
			logger.LogInfo((object)"NoLockedDoors loaded");
			harmony.PatchAll(typeof(DoorLockPatch));
		}
	}
}
namespace NoLockedDoors.Patches
{
	[HarmonyPatch(typeof(DoorLock))]
	public class DoorLockPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPrefix]
		private static void patchUpdate(ref DoorLock __instance)
		{
			__instance.UnlockDoor();
		}
	}
}