Decompiled source of LevelReloader v1.1.0

Mods/LevelReloader.dll

Decompiled 11 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using LevelReloader;
using MelonLoader;
using Microsoft.CodeAnalysis;
using SLZ.Marrow.SceneStreaming;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("Reloads the level if you hit Control R.")]
[assembly: AssemblyDescription("Reloads the level if you hit Control R.")]
[assembly: AssemblyCompany("Weather Electric")]
[assembly: AssemblyProduct("Level Reloader")]
[assembly: AssemblyCopyright("Developed by SoulWithMae")]
[assembly: AssemblyTrademark("Weather Electric")]
[assembly: AssemblyFileVersion("1.1.0")]
[assembly: MelonInfo(typeof(Main), "Level Reloader", "1.1.0", "SoulWithMae", "https://bonelab.thunderstore.io/package/SoulWithMae/LevelReloader/")]
[assembly: MelonColor(ConsoleColor.White)]
[assembly: MelonGame("Stress Level Zero", "BONELAB")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.1.0.0")]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace LevelReloader
{
	public class Main : MelonMod
	{
		internal const string Name = "Level Reloader";

		internal const string Description = "Reloads the level if you hit Control R.";

		internal const string Author = "SoulWithMae";

		internal const string Company = "Weather Electric";

		internal const string Version = "1.1.0";

		internal const string DownloadLink = "https://bonelab.thunderstore.io/package/SoulWithMae/LevelReloader/";

		public override void OnUpdate()
		{
			if ((Input.GetKeyDown((KeyCode)306) || Input.GetKeyDown((KeyCode)305)) && Input.GetKeyDown((KeyCode)114))
			{
				SceneStreamer.Reload();
			}
		}
	}
}