Decompiled source of NutKingCallSuit v1.0.1

NutKingCallSuit.dll

Decompiled 9 hours ago
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using ModelReplacement;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("NutKingCallSuit")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NutKingCallSuit")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("9f575387-afd6-446c-a4bb-3dd6ba33996d")]
[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 NutKingCallSuit;

public class NutKingCallReplacement : BodyReplacementBase
{
	protected override GameObject LoadAssetsAndReturnModel()
	{
		return Plugin.NutKingCallPrefab;
	}
}
[BepInPlugin("LeeHess.NutKingCallSuit", "NutKingCall Suit", "1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
	public static GameObject NutKingCallPrefab;

	private void Awake()
	{
		string directoryName = Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location);
		string text = Path.Combine(directoryName, "nutkingcall");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		if ((Object)(object)val == (Object)null)
		{
			((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load NutKingCall asset bundle.");
			return;
		}
		NutKingCallPrefab = val.LoadAsset<GameObject>("NutKingCall");
		if ((Object)(object)NutKingCallPrefab == (Object)null)
		{
			((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load NutKingCall prefab from asset bundle.");
			return;
		}
		ModelReplacementAPI.RegisterSuitModelReplacement("NutKingCall", typeof(NutKingCallReplacement));
		((BaseUnityPlugin)this).Logger.LogInfo((object)"NutKingCall Suit loaded successfully.");
	}
}