Decompiled source of CloverBee Ultimate Avatar Pack v0.3.0

THE MOD.dll

Decompiled a day ago
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: IgnoresAccessChecksTo("")]
[assembly: AssemblyCompany("THE MOD")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("THE MOD")]
[assembly: AssemblyTitle("THE MOD")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
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;
		}
	}
}
namespace ModelReplacement
{
	public class MRBEARDABEAR : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Beardabear";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRBIGBOYDARIUS : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "BigBoyDarius";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRBILLEHBAWB : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "BillehBawb";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRBLUEBEE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "BlueBee";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRBRAM : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Bram";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRBUBBLES : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Bubbles";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRSOGGS : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Soggs";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRSOULFOXGAMING : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "SoulfoxGaming";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRSTARCENTURION : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "StarCenturion";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRSTORMY : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Stormy";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRTHEBACONGM : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "TheBaconGm";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRTONYPEPPERONI : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "TonyPepperoni";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRTYDALWAVEE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Tydalwavee";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRTYLERKNOWS : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "TylerKnows";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRUNTURNED : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Unturned";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRVOIX : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Voix";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRWAREWOLF : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "WareWolf";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRACETHENARRATOR : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "AceTheNarrator";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRATLAS : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Atlas";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRCALLUMROCKING : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "CallumRocking";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRCAM : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Cam";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRCLOVERBEE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "CloverBee";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRCOACH : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Coach";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRCOMMANDERWOLF : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "CommanderWolf";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRCORBENS : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Corbens";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRDUDE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Dude";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MREMILYWAFFLESYAY : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "EmilyWafflesYay";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MREDENDAAPPLE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Edendaapple";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRERDOESGAMING : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "ErdoesGaming";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRFEDDY : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Feddy";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRHAIRYMANLEGS : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "HairyManLegs";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRIIBURACHI : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "iiBurachi";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRIX2 : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "IX2";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRJUJU : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "JuJu";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRMIGHTYC13 : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Mightyc13";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRMINILDM016 : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Minildm016";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRPANCAKE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Pancake";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRPOW : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "POW";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRRAINUX : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Rainux";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRRCLMAN : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Rclman";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRSK0L : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Sk0l";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRSLAT : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Slat";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRBOETHIAH : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Boethiah";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRSOGGS_ : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Soggs";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRSOULFOXGAMING_ : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "SoulfoxGaming";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRSTYLESZZZ : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Styleszzz";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRACETHENARRATOR_ : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "AceTheNarrator";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRCHUBBIERSNAIL : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "ChubbierSnail";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MRBILLYBOBVR : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "BillyBobVr";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	[BepInPlugin("com.Clover_3ee.CloverBeeUltimateAvatarPack", "CloverBee Ultimate Avatar Pack", "0.1.0")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Plugin : BaseUnityPlugin
	{
		private void Awake()
		{
			//IL_03d2: Unknown result type (might be due to invalid IL or missing references)
			//IL_03d8: Expected O, but got Unknown
			Assets.PopulateAssets();
			ModelReplacementAPI.RegisterSuitModelReplacement("Beardabear", typeof(MRBEARDABEAR));
			ModelReplacementAPI.RegisterSuitModelReplacement("BigBoyDarius", typeof(MRBIGBOYDARIUS));
			ModelReplacementAPI.RegisterSuitModelReplacement("BillehBawb", typeof(MRBILLEHBAWB));
			ModelReplacementAPI.RegisterSuitModelReplacement("BlueBee", typeof(MRBLUEBEE));
			ModelReplacementAPI.RegisterSuitModelReplacement("Boethiah", typeof(MRBOETHIAH));
			ModelReplacementAPI.RegisterSuitModelReplacement("Bram", typeof(MRBRAM));
			ModelReplacementAPI.RegisterSuitModelReplacement("Bubbles", typeof(MRBUBBLES));
			ModelReplacementAPI.RegisterSuitModelReplacement("SoggoBoggo", typeof(MRSOGGS));
			ModelReplacementAPI.RegisterSuitModelReplacement("SoulFoxGaming", typeof(MRSOULFOXGAMING));
			ModelReplacementAPI.RegisterSuitModelReplacement("StarCenturion", typeof(MRSTARCENTURION));
			ModelReplacementAPI.RegisterSuitModelReplacement("Stormy", typeof(MRSTORMY));
			ModelReplacementAPI.RegisterSuitModelReplacement("Stylezzz", typeof(MRSTYLESZZZ));
			ModelReplacementAPI.RegisterSuitModelReplacement("TheBaconGM", typeof(MRTHEBACONGM));
			ModelReplacementAPI.RegisterSuitModelReplacement("TonyPepperoni", typeof(MRTONYPEPPERONI));
			ModelReplacementAPI.RegisterSuitModelReplacement("TydalWavee", typeof(MRTYDALWAVEE));
			ModelReplacementAPI.RegisterSuitModelReplacement("TylerKnows", typeof(MRTYLERKNOWS));
			ModelReplacementAPI.RegisterSuitModelReplacement("Unturned", typeof(MRUNTURNED));
			ModelReplacementAPI.RegisterSuitModelReplacement("Voix", typeof(MRVOIX));
			ModelReplacementAPI.RegisterSuitModelReplacement("WareWolf", typeof(MRWAREWOLF));
			ModelReplacementAPI.RegisterSuitModelReplacement("AceTheNarrator", typeof(MRACETHENARRATOR));
			ModelReplacementAPI.RegisterSuitModelReplacement("Atlas", typeof(MRATLAS));
			ModelReplacementAPI.RegisterSuitModelReplacement("CallumRocking", typeof(MRCALLUMROCKING));
			ModelReplacementAPI.RegisterSuitModelReplacement("Cam", typeof(MRCAM));
			ModelReplacementAPI.RegisterSuitModelReplacement("CloverBee", typeof(MRCLOVERBEE));
			ModelReplacementAPI.RegisterSuitModelReplacement("Coach", typeof(MRCOACH));
			ModelReplacementAPI.RegisterSuitModelReplacement("CommanderWolf", typeof(MRCOMMANDERWOLF));
			ModelReplacementAPI.RegisterSuitModelReplacement("Corbens", typeof(MRCORBENS));
			ModelReplacementAPI.RegisterSuitModelReplacement("Dude", typeof(MRDUDE));
			ModelReplacementAPI.RegisterSuitModelReplacement("EmailyWafflesYay", typeof(MREMILYWAFFLESYAY));
			ModelReplacementAPI.RegisterSuitModelReplacement("EdenDaApple", typeof(MREDENDAAPPLE));
			ModelReplacementAPI.RegisterSuitModelReplacement("ERDoesGaming", typeof(MRERDOESGAMING));
			ModelReplacementAPI.RegisterSuitModelReplacement("Feddy", typeof(MRFEDDY));
			ModelReplacementAPI.RegisterSuitModelReplacement("Hairymanlegs", typeof(MRHAIRYMANLEGS));
			ModelReplacementAPI.RegisterSuitModelReplacement("Iiburachi", typeof(MRIIBURACHI));
			ModelReplacementAPI.RegisterSuitModelReplacement("IX2", typeof(MRIX2));
			ModelReplacementAPI.RegisterSuitModelReplacement("JuJu", typeof(MRJUJU));
			ModelReplacementAPI.RegisterSuitModelReplacement("Mightyc13", typeof(MRMIGHTYC13));
			ModelReplacementAPI.RegisterSuitModelReplacement("Minildm016", typeof(MRMINILDM016));
			ModelReplacementAPI.RegisterSuitModelReplacement("Pancake", typeof(MRPANCAKE));
			ModelReplacementAPI.RegisterSuitModelReplacement("POW", typeof(MRPOW));
			ModelReplacementAPI.RegisterSuitModelReplacement("Rainux", typeof(MRRAINUX));
			ModelReplacementAPI.RegisterSuitModelReplacement("RCLman", typeof(MRRCLMAN));
			ModelReplacementAPI.RegisterSuitModelReplacement("Sk0l", typeof(MRSK0L));
			ModelReplacementAPI.RegisterSuitModelReplacement("Slat", typeof(MRSLAT));
			ModelReplacementAPI.RegisterSuitModelReplacement("BillyBobVR", typeof(MRBILLYBOBVR));
			ModelReplacementAPI.RegisterSuitModelReplacement("ChubbierSnail", typeof(MRCHUBBIERSNAIL));
			Harmony val = new Harmony("com.Clover_3ee.CloverBeeUltimateAvatarPack");
			val.PatchAll();
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.Clover_3ee.CloverBeeUltimateAvatarPack is loaded!");
		}
	}
	public static class Assets
	{
		public static string mainAssetBundleName = "CloverBeeUltimateAvatarPack";

		public static AssetBundle MainAssetBundle = null;

		private static string GetAssemblyName()
		{
			return Assembly.GetExecutingAssembly().GetName().Name.Replace(" ", "_");
		}

		public static void PopulateAssets()
		{
			if ((Object)(object)MainAssetBundle == (Object)null)
			{
				Console.WriteLine(GetAssemblyName() + "." + mainAssetBundleName);
				using Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(GetAssemblyName() + "." + mainAssetBundleName);
				MainAssetBundle = AssetBundle.LoadFromStream(stream);
			}
		}
	}
}
namespace System.Runtime.CompilerServices
{
	[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
	internal sealed class IgnoresAccessChecksToAttribute : Attribute
	{
		public IgnoresAccessChecksToAttribute(string assemblyName)
		{
		}
	}
}