Decompiled source of infiniteRocketRide v1.1.0

InfiniteRocketRide.dll

Decompiled 4 hours ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("InfiniteRocketRide")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("InfiniteRocketRide")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("20632d35-a163-4ec3-a494-947470fb27c1")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace infiniteRocketRide;

[BepInPlugin("Kajaz.InfiniteRocketRide", "InfiniteRocketRide", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	private const string modGUID = "Kajaz.InfiniteRocketRide";

	private const string modName = "InfiniteRocketRide";

	private WeaponCharges weaponCharges;

	private const string modVersion = "1.0.0";

	private static readonly Harmony Harmony = new Harmony("Kajaz.InfiniteRocketRide");

	private void Awake()
	{
		Debug.Log((object)"Mod InfiniteRocketRide version 1.0.0 is loading...");
		Harmony.PatchAll();
		Debug.Log((object)"Mod InfiniteRocketRide version 1.0.0 is loaded!");
	}

	private void Update()
	{
		//IL_0012: Unknown result type (might be due to invalid IL or missing references)
		//IL_001d: Expected O, but got Unknown
		weaponCharges = MonoSingleton<WeaponCharges>.Instance;
		if ((Object)weaponCharges != (Object)null)
		{
			weaponCharges.infiniteRocketRide = true;
		}
	}
}