Decompiled source of NoMoreFloatingIslands v2.0.1

Mods/NoMoreFloatingIslands.dll

Decompiled 5 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using MelonLoader;
using NoMoreFloatingIslands;
using RumbleModdingAPI;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(main), "NoMoreFloatingIslands", "2.0.1", "UlvakSkillz", null)]
[assembly: MelonGame("Buckethead Entertainment", "RUMBLE")]
[assembly: MelonColor(255, 195, 0, 255)]
[assembly: MelonAuthorColor(255, 195, 0, 255)]
[assembly: VerifyLoaderVersion(0, 6, 2, true)]
[assembly: AssemblyTitle("NoMoreFloatingIslands")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NoMoreFloatingIslands")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("01024370-5528-4df2-aa02-8d2af070b367")]
[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 NoMoreFloatingIslands;

public class main : MelonMod
{
	private string currentScene = "Loader";

	public override void OnLateInitializeMelon()
	{
		Calls.onMapInitialized += MapChange;
	}

	public void MapChange()
	{
		//IL_0031: Unknown result type (might be due to invalid IL or missing references)
		//IL_0051: Unknown result type (might be due to invalid IL or missing references)
		//IL_008f: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d1: Unknown result type (might be due to invalid IL or missing references)
		if (currentScene == "Gym")
		{
			GameObject gameObject = Vista.GetGameObject();
			gameObject.transform.position = new Vector3(-69.2273f, 49.1892f, 147.8461f);
			gameObject.transform.localRotation = Quaternion.Euler(0f, 0f, 346.9459f);
		}
		else if (currentScene == "Park")
		{
			GameObject gameObject2 = Mountains.GetGameObject();
			gameObject2.transform.position = new Vector3(-504.6093f, 44.7704f, -172.3946f);
		}
		else if (currentScene == "Map0")
		{
			GameObject gameObject3 = Mountain.GetGameObject();
			gameObject3.transform.position = new Vector3(-656.545f, -61.4944f, 585.4775f);
		}
	}

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