Decompiled source of ClearAlleyMod v1.0.3

plugins/ClearAlleyIL2Cpp1.0.3.dll

Decompiled 2 months 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.IgnoreSymbolStoreSequencePoints)]
[assembly: MelonInfo(typeof(ClearAlleyIL2Cpp), "ClearAlley IL2Cpp", "1.0.3", "Cfynx", null)]
[assembly: MelonGame("TVGS", "Schedule I")]
[assembly: AssemblyTitle("ClearAlley IL2Cpp")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ClearAlley IL2Cpp")]
[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 ClearAlleyIL2Cpp : MelonMod
{
	public string gameobjectPathPickup = "Map/Hyland Point/Decorative Vehicles/Pickup (2)";

	public string gameobjectPathSUV = "Map/Hyland Point/Decorative Vehicles/SUV (1)";

	public string gameobjectPathPalletRack = "Map/Hyland Point/Region_Northtown/Backstreet/Pallet Rack/";

	public string gameobjectPathSkipBin = "Map/Hyland Point/Region_Northtown/Backstreet/Skip bin/";

	public string gameobjectPathDrum1 = "Map/Hyland Point/Region_Northtown/Backstreet/Liquid Drum Prop";

	public string gameobjectPathDrum2 = "Map/Hyland Point/Region_Northtown/Backstreet/Liquid Drum Prop (1)";

	public string gameobjectPathPostBox = "Map/Hyland Point/Region_Northtown/Basketball court/Post box (1)/";

	public string gameobjectPathPalletProp = "@Properties/Sweatshop/Chinese Restaurant/Pallet Prop/";

	public string gameobjectPathCinderblockProp = "Map/Hyland Point/Region_Northtown/Waterfront/Cinderblock";

	public GameObject gameobjectPickup;

	public GameObject gameobjectSUV;

	public GameObject gameobjectPalletRack;

	public GameObject gameobjectSkipBin;

	public GameObject gameobjectDrum1;

	public GameObject gameobjectDrum2;

	public GameObject gameobjectPostBox;

	public GameObject gameobjectPalletProp;

	public GameObject gameobjectCinderblockProp;

	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")
		{
			gameobjectPickup = GameObject.Find(gameobjectPathPickup);
			Object.Destroy((Object)(object)gameobjectPickup);
			gameobjectSUV = GameObject.Find(gameobjectPathSUV);
			Object.Destroy((Object)(object)gameobjectSUV);
			gameobjectPalletRack = GameObject.Find(gameobjectPathPalletRack);
			Object.Destroy((Object)(object)gameobjectPalletRack);
			gameobjectSkipBin = GameObject.Find(gameobjectPathSkipBin);
			Object.Destroy((Object)(object)gameobjectSkipBin);
			gameobjectDrum1 = GameObject.Find(gameobjectPathDrum1);
			Object.Destroy((Object)(object)gameobjectDrum1);
			gameobjectDrum2 = GameObject.Find(gameobjectPathDrum2);
			Object.Destroy((Object)(object)gameobjectDrum2);
			gameobjectPostBox = GameObject.Find(gameobjectPathPostBox);
			Object.Destroy((Object)(object)gameobjectPostBox);
			gameobjectPalletProp = GameObject.Find(gameobjectPathPalletProp);
			Object.Destroy((Object)(object)gameobjectPalletProp);
			gameobjectCinderblockProp = GameObject.Find(gameobjectPathCinderblockProp);
			Object.Destroy((Object)(object)gameobjectCinderblockProp);
		}
	}
}

plugins/ClearAlleyMono1.0.3.dll

Decompiled 2 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using MelonLoader;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: MelonInfo(typeof(ClearAlleyMono), "ClearAlleyMono", "1.0.3", "Cfynx", null)]
[assembly: MelonGame("TVGS", "Schedule I")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("ClearAlleyMono1.0.0")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("ClearAlleyMono1.0.0")]
[assembly: AssemblyTitle("ClearAlleyMono1.0.0")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableAttribute : Attribute
	{
		public readonly byte[] NullableFlags;

		public NullableAttribute(byte P_0)
		{
			NullableFlags = new byte[1] { P_0 };
		}

		public NullableAttribute(byte[] P_0)
		{
			NullableFlags = P_0;
		}
	}
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableContextAttribute : Attribute
	{
		public readonly byte Flag;

		public NullableContextAttribute(byte P_0)
		{
			Flag = P_0;
		}
	}
}
public class ClearAlleyMono : MelonMod
{
	public string gameobjectPathPickup = "Map/Hyland Point/Decorative Vehicles/Pickup (2)";

	public string gameobjectPathSUV = "Map/Hyland Point/Decorative Vehicles/SUV (1)";

	public string gameobjectPathPalletRack = "Map/Hyland Point/Region_Northtown/Backstreet/Pallet Rack/";

	public string gameobjectPathSkipBin = "Map/Hyland Point/Region_Northtown/Backstreet/Skip bin/";

	public string gameobjectPathDrum1 = "Map/Hyland Point/Region_Northtown/Backstreet/Liquid Drum Prop";

	public string gameobjectPathDrum2 = "Map/Hyland Point/Region_Northtown/Backstreet/Liquid Drum Prop (1)";

	public string gameobjectPathPostBox = "Map/Hyland Point/Region_Northtown/Basketball court/Post box (1)/";

	public string gameobjectPathPalletProp = "@Properties/Sweatshop/Chinese Restaurant/Pallet Prop/";

	public string gameobjectPathCinderblockProp = "Map/Hyland Point/Region_Northtown/Waterfront/Cinderblock";

	public GameObject? gameobjectPickup;

	public GameObject? gameobjectSUV;

	public GameObject? gameobjectPalletRack;

	public GameObject? gameobjectSkipBin;

	public GameObject? gameobjectDrum1;

	public GameObject? gameobjectDrum2;

	public GameObject? gameobjectPostBox;

	public GameObject? gameobjectPalletProp;

	public GameObject? gameobjectCinderblockProp;

	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")
		{
			gameobjectPickup = GameObject.Find(gameobjectPathPickup);
			Object.Destroy((Object)(object)gameobjectPickup);
			gameobjectSUV = GameObject.Find(gameobjectPathSUV);
			Object.Destroy((Object)(object)gameobjectSUV);
			gameobjectPalletRack = GameObject.Find(gameobjectPathPalletRack);
			Object.Destroy((Object)(object)gameobjectPalletRack);
			gameobjectSkipBin = GameObject.Find(gameobjectPathSkipBin);
			Object.Destroy((Object)(object)gameobjectSkipBin);
			gameobjectDrum1 = GameObject.Find(gameobjectPathDrum1);
			Object.Destroy((Object)(object)gameobjectDrum1);
			gameobjectDrum2 = GameObject.Find(gameobjectPathDrum2);
			Object.Destroy((Object)(object)gameobjectDrum2);
			gameobjectPostBox = GameObject.Find(gameobjectPathPostBox);
			Object.Destroy((Object)(object)gameobjectPostBox);
			gameobjectPalletProp = GameObject.Find(gameobjectPathPalletProp);
			Object.Destroy((Object)(object)gameobjectPalletProp);
			gameobjectCinderblockProp = GameObject.Find(gameobjectPathCinderblockProp);
			Object.Destroy((Object)(object)gameobjectCinderblockProp);
		}
	}
}