Decompiled source of WWE Divas v1.0.8

Lethal Mods.dll

Decompiled a month 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-CSharp")]
[assembly: AssemblyCompany("Lethal Mods")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("Lethal Mods")]
[assembly: AssemblyTitle("Lethal Mods")]
[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 RANGER : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "ranger";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MARIA : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "maria";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class KHARMA : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "kharma";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class GAILKIM : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "gailkim";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class SABRINACARPENTER : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "SabrinaCarpenter";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class KELLYKELLY : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "kellykelly";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MARYSE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "maryse";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class DOJACAT : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "dojacat";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class ASHLEY : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "ashley";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class EVETORRES : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "evetorres";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class TORRIEWILSON : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "torriewilson";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class MARYSEE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "marysee";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class KELLY : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "KELLY";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class EVE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "eve";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class SABRINA : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Sabrina";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class NIKKIBELLA : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "nikkibella";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class LEXYFARRON : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "LexyFarron";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class STASSIEFARRON : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "StassieFarron";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class BRIARFARRON : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "BriarFarron";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class SAMARA : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Samara";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class TIFFANYVALENTINE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "TiffanyValentine";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class CHUCKY : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Chucky";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class GHOSTFACE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "GhostFace";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class GHOSTGIRL : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "GhostGirl";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class FANTASMADAGALA : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "FantasmaDaGala";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class SPIRIT : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Spirit";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class ALICIAFOX : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "AliciaFox";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class TORRIE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Torrie";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class CANDICEMICHELLE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "CandiceMichelle";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class LEXY : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Lexy";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class BRIAR : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Briar";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class TRINIKOCK : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "TriniKock";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class CRIS : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Cris";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class STASSIE : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Stassie";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	public class ELVIRA : BodyReplacementBase
	{
		protected override GameObject LoadAssetsAndReturnModel()
		{
			string text = "Elvira";
			return Assets.MainAssetBundle.LoadAsset<GameObject>(text);
		}
	}
	[BepInPlugin("com.lexyzinha.divasmod", "WWE Divas+", "0.1.0")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Plugin : BaseUnityPlugin
	{
		private void Awake()
		{
			//IL_02eb: Unknown result type (might be due to invalid IL or missing references)
			//IL_02f1: Expected O, but got Unknown
			Assets.PopulateAssets();
			ModelReplacementAPI.RegisterSuitModelReplacement("Ranger", typeof(RANGER));
			ModelReplacementAPI.RegisterSuitModelReplacement("Maria", typeof(MARIA));
			ModelReplacementAPI.RegisterSuitModelReplacement("Kharma", typeof(KHARMA));
			ModelReplacementAPI.RegisterSuitModelReplacement("GailKim", typeof(GAILKIM));
			ModelReplacementAPI.RegisterSuitModelReplacement("SabrinaCarpenter", typeof(SABRINACARPENTER));
			ModelReplacementAPI.RegisterSuitModelReplacement("KellyKelly", typeof(KELLYKELLY));
			ModelReplacementAPI.RegisterSuitModelReplacement("Maryse", typeof(MARYSE));
			ModelReplacementAPI.RegisterSuitModelReplacement("DojaCat", typeof(DOJACAT));
			ModelReplacementAPI.RegisterSuitModelReplacement("Ashley", typeof(ASHLEY));
			ModelReplacementAPI.RegisterSuitModelReplacement("EveTorres", typeof(EVETORRES));
			ModelReplacementAPI.RegisterSuitModelReplacement("TorrieWilson", typeof(TORRIEWILSON));
			ModelReplacementAPI.RegisterSuitModelReplacement("Marysee", typeof(MARYSEE));
			ModelReplacementAPI.RegisterSuitModelReplacement("Kelly", typeof(KELLY));
			ModelReplacementAPI.RegisterSuitModelReplacement("Eve", typeof(EVE));
			ModelReplacementAPI.RegisterSuitModelReplacement("Sabrina", typeof(SABRINA));
			ModelReplacementAPI.RegisterSuitModelReplacement("NikkiBella", typeof(NIKKIBELLA));
			ModelReplacementAPI.RegisterSuitModelReplacement("LexyFarron", typeof(LEXYFARRON));
			ModelReplacementAPI.RegisterSuitModelReplacement("StassieFarron", typeof(STASSIEFARRON));
			ModelReplacementAPI.RegisterSuitModelReplacement("BriarFarron", typeof(BRIARFARRON));
			ModelReplacementAPI.RegisterSuitModelReplacement("Samara", typeof(SAMARA));
			ModelReplacementAPI.RegisterSuitModelReplacement("TiffanyValentine", typeof(TIFFANYVALENTINE));
			ModelReplacementAPI.RegisterSuitModelReplacement("Chucky", typeof(CHUCKY));
			ModelReplacementAPI.RegisterSuitModelReplacement("GhostFace", typeof(GHOSTFACE));
			ModelReplacementAPI.RegisterSuitModelReplacement("GhostGirl", typeof(GHOSTGIRL));
			ModelReplacementAPI.RegisterSuitModelReplacement("FantasmaDaGala", typeof(FANTASMADAGALA));
			ModelReplacementAPI.RegisterSuitModelReplacement("Spirit", typeof(SPIRIT));
			ModelReplacementAPI.RegisterSuitModelReplacement("AliciaFox", typeof(ALICIAFOX));
			ModelReplacementAPI.RegisterSuitModelReplacement("CandiceMichelle", typeof(CANDICEMICHELLE));
			ModelReplacementAPI.RegisterSuitModelReplacement("Torrie", typeof(TORRIE));
			ModelReplacementAPI.RegisterSuitModelReplacement("Lexy", typeof(LEXY));
			ModelReplacementAPI.RegisterSuitModelReplacement("Briar", typeof(BRIAR));
			ModelReplacementAPI.RegisterSuitModelReplacement("TriniKock", typeof(TRINIKOCK));
			ModelReplacementAPI.RegisterSuitModelReplacement("Cris", typeof(CRIS));
			ModelReplacementAPI.RegisterSuitModelReplacement("Stassie", typeof(STASSIE));
			ModelReplacementAPI.RegisterSuitModelReplacement("Elvira", typeof(ELVIRA));
			Harmony val = new Harmony("com.lexyzinha.divasmod");
			val.PatchAll();
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.lexyzinha.divasmod is loaded!");
		}
	}
	public static class Assets
	{
		public static string mainAssetBundleName = "WWEDivas";

		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)
		{
		}
	}
}