Decompiled source of ClearAlleyMod IL2CPP v1.0.0

plugins/ClearAlley.dll

Decompiled a year ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using MelonLoader;
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(ParkedCarPalletRackRemover), "ParkedCar&PalletRackRemover", "1.0.0", "Cfynx", null)]
[assembly: MelonGame("TVGS", "Schedule I")]
[assembly: AssemblyTitle("ParkedCarPalletRackRemover")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ParkedCarPalletRackRemover")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("ec1a726d-82da-4696-a11b-9b4f95734df3")]
[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")]
public class ParkedCarPalletRackRemover : MelonMod
{
	public string gameobjectPath1 = "Map/Container/Vehicles/Pickup (2)";

	public string gameobjectPath2 = "Map/Container/Vehicles/SUV (1)";

	public string gameobjectPath3 = "Map/Container/North town/Backstreet/Pallet Rack/";

	public string gameobjectPath4 = "Map/Container/North town/Backstreet/Skip bin/";

	public GameObject gameobject1;

	public GameObject gameobject2;

	public GameObject gameobject3;

	public GameObject gameobject4;

	public override void OnInitializeMelon()
	{
		((MelonBase)this).LoggerInstance.Msg("Parked cars towed and pallet rack moved out of the way!");
	}

	public override void OnSceneWasLoaded(int buildIndex, string sceneName)
	{
		if (sceneName == "Main")
		{
			gameobject1 = GameObject.Find(gameobjectPath1);
			Object.Destroy((Object)(object)gameobject1);
			gameobject2 = GameObject.Find(gameobjectPath2);
			Object.Destroy((Object)(object)gameobject2);
			gameobject3 = GameObject.Find(gameobjectPath3);
			Object.Destroy((Object)(object)gameobject3);
			gameobject4 = GameObject.Find(gameobjectPath4);
			Object.Destroy((Object)(object)gameobject4);
		}
	}
}