Decompiled source of InstantShipLever v1.0.0

InstantShipLever.dll

Decompiled a year ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using UnityEngine;

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

[BepInPlugin("ViViKo.InstantShipLever", "InstantShipLever", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	[HarmonyPatch(typeof(StartMatchLever))]
	internal class StartMatchLeverPatch
	{
		[HarmonyPatch("Start")]
		[HarmonyPostfix]
		private static void StartPatch(ref StartMatchLever __instance)
		{
			__instance.triggerScript.holdInteraction = false;
		}
	}

	private const string modGUID = "ViViKo.InstantShipLever";

	private const string modName = "InstantShipLever";

	private const string modVersion = "1.0.0";

	private readonly Harmony harmony = new Harmony("ViViKo.InstantShipLever");

	private static Plugin Instance;

	private void Awake()
	{
		if ((Object)(object)Instance == (Object)null)
		{
			Instance = this;
		}
		harmony.PatchAll();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin InstantShipLever is loaded!");
	}
}
public static class PluginInfo
{
	public const string PLUGIN_GUID = "InstantShipLever";

	public const string PLUGIN_NAME = "InstantShipLever";

	public const string PLUGIN_VERSION = "1.0.0";
}