Decompiled source of NoTimeLimit v1.0.0

Mods/NoTimeLimit.dll

Decompiled 4 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using HarmonyLib;
using Il2CppGB.Game;
using MelonLoader;
using Microsoft.CodeAnalysis;
using NoTimeLimit;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("A mod for Gang Beasts that removes the time limit in local games.")]
[assembly: AssemblyDescription("A mod for Gang Beasts that removes the time limit in local games.")]
[assembly: AssemblyCompany("CementGB")]
[assembly: AssemblyProduct("NoTimeLimit")]
[assembly: AssemblyCopyright("Created by TheUltimateNuke")]
[assembly: AssemblyTrademark("CementGB")]
[assembly: AssemblyFileVersion("1.0.0")]
[assembly: MelonInfo(typeof(Mod), "NoTimeLimit", "1.0.0", "TheUltimateNuke", null)]
[assembly: MelonGame("Boneloaf", "Gang Beasts")]
[assembly: MelonPriority(-1000)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyVersion("1.0.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 NoTimeLimit
{
	public class Mod : MelonMod
	{
		public static class BuildInfo
		{
			public const string Name = "NoTimeLimit";

			public const string Version = "1.0.0";

			public const string Description = "A mod for Gang Beasts that removes the time limit in local games.";

			public const string Author = "TheUltimateNuke";

			public const string Company = "CementGB";
		}

		[HarmonyPatch(typeof(GameMode), "SetupTimer")]
		private static class GameModeSetupTimerPatch
		{
			private static void Postfix(GameMode __instance)
			{
				__instance.timer = float.MaxValue;
			}
		}
	}
}