Decompiled source of LoadingDockFix v1.0.0

LoadingDockFix.dll

Decompiled 3 weeks ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using LoadingDockFix;
using MelonLoader;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: MelonInfo(typeof(global::LoadingDockFix.LoadingDockFix), "LoadingDockFix", "1.0", "ayteeate", null)]
[assembly: MelonColor]
[assembly: MelonGame("TVGS", "Schedule I")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyCompany("LoadingDockFix")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("LoadingDockFix")]
[assembly: AssemblyTitle("LoadingDockFix")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace LoadingDockFix;

public static class BuildInfo
{
	public const string Name = "LoadingDockFix";

	public const string Description = "Repositions the loading docks so they can be automatable with the management clipboard";

	public const string Author = "ayteeate";

	public const string Company = null;

	public const string Version = "1.0";

	public const string DownloadLink = null;
}
public class LoadingDockFix : MelonMod
{
	public override void OnSceneWasLoaded(int buildIndex, string sceneName)
	{
		//IL_0037: Unknown result type (might be due to invalid IL or missing references)
		//IL_004c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0056: Unknown result type (might be due to invalid IL or missing references)
		//IL_0077: Unknown result type (might be due to invalid IL or missing references)
		//IL_008c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0096: Unknown result type (might be due to invalid IL or missing references)
		//IL_00b7: Unknown result type (might be due to invalid IL or missing references)
		//IL_00cc: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d6: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_010c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0116: Unknown result type (might be due to invalid IL or missing references)
		((MelonBase)this).LoggerInstance.Msg("Scene Loaded");
		if (sceneName == "Main")
		{
			GameObject val = GameObject.Find("@Properties/Barn/Loading Dock");
			val.transform.position = new Vector3(val.transform.position.x, 0f, val.transform.position.z);
			val = GameObject.Find("@Properties/Barn/Loading Dock (1)");
			val.transform.position = new Vector3(val.transform.position.x, 0f, val.transform.position.z);
			val = GameObject.Find("@Properties/DocksWarehouse/Loading Dock");
			val.transform.position = new Vector3(val.transform.position.x, -2.4f, val.transform.position.z);
			val = GameObject.Find("@Properties/DocksWarehouse/Loading Dock (1)");
			val.transform.position = new Vector3(val.transform.position.x, -2.4f, val.transform.position.z);
			((MelonBase)this).LoggerInstance.Msg("Loading docks fixed");
		}
		((MelonMod)this).OnSceneWasLoaded(buildIndex, sceneName);
	}
}