Decompiled source of Quality of life improvements v1.0.2

Mods/Park_dingdong.dll

Decompiled 5 days ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using Il2CppRUMBLE.Players;
using Il2CppSystem.Collections.Generic;
using MelonLoader;
using Park_dingdong;
using RumbleModdingAPI;
using RumbleSoundsOnSceneChange;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(Class1), "Park_dingdong", "1.0.0", "Rabbit", null)]
[assembly: MelonGame("Buckethead Entertainment", "RUMBLE")]
[assembly: AssemblyTitle("Park_dingdong")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Park_dingdong")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("8a963fb7-1e48-40b8-8a0c-a3a7d95dafd3")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Park_dingdong;

public class Class1 : MelonMod
{
	public static string scenename;

	public static List<Player> Players;

	public static int newint = 1;

	public static int oldint = 1;

	public override void OnSceneWasLoaded(int buildIndex, string sceneName)
	{
		scenename = sceneName;
	}

	public override void OnFixedUpdate()
	{
		if (scenename == "Park")
		{
			Players = Managers.GetPlayerManager().AllPlayers;
			newint = Players.Count;
			if (newint > oldint)
			{
				AdditionalSounds.PlaySoundIfFileExists("\\Sounds\\bell.mp3", 1);
				oldint = newint;
			}
			if (newint < oldint)
			{
				AdditionalSounds.PlaySoundIfFileExists("\\Sounds\\end.mp3", 1);
				oldint = newint;
			}
			oldint = newint;
		}
	}
}