Decompiled source of HallowsEnemySkins v1.0.5

plugins/HallowsEnemySkins/HallowsEnemySkins.dll

Decompiled 7 months ago
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using AntlerShed.EnemySkinKit.Vanilla;
using AntlerShed.SkinRegistry;
using BepInEx;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyVersion("0.0.0.0")]
[CompilerGenerated]
[EditorBrowsable(EditorBrowsableState.Never)]
[GeneratedCode("Unity.MonoScriptGenerator.MonoScriptInfoGenerator", null)]
internal class UnitySourceGeneratedAssemblyMonoScriptTypes_v1
{
	private struct MonoScriptData
	{
		public byte[] FilePathsData;

		public byte[] TypesData;

		public int TotalTypes;

		public int TotalFiles;

		public bool IsEditorOnly;
	}

	[MethodImpl(MethodImplOptions.AggressiveInlining)]
	private static MonoScriptData Get()
	{
		MonoScriptData result = default(MonoScriptData);
		result.FilePathsData = new byte[93]
		{
			0, 0, 0, 1, 0, 0, 0, 85, 92, 65,
			115, 115, 101, 116, 115, 92, 72, 97, 108, 108,
			111, 119, 115, 69, 110, 101, 109, 121, 83, 107,
			105, 110, 115, 83, 116, 97, 103, 105, 110, 103,
			92, 112, 108, 117, 103, 105, 110, 115, 92, 72,
			97, 108, 108, 111, 119, 115, 69, 110, 101, 109,
			121, 83, 107, 105, 110, 115, 92, 72, 97, 108,
			108, 111, 119, 115, 69, 110, 101, 109, 121, 83,
			107, 105, 110, 115, 80, 108, 117, 103, 105, 110,
			46, 99, 115
		};
		result.TypesData = new byte[67]
		{
			0, 0, 0, 0, 62, 72, 97, 108, 108, 111,
			119, 46, 76, 101, 116, 104, 97, 108, 67, 111,
			109, 112, 97, 110, 121, 46, 72, 97, 108, 108,
			111, 119, 115, 69, 110, 101, 109, 121, 83, 107,
			105, 110, 115, 124, 72, 97, 108, 108, 111, 119,
			115, 69, 110, 101, 109, 121, 83, 107, 105, 110,
			115, 80, 108, 117, 103, 105, 110
		};
		result.TotalFiles = 1;
		result.TotalTypes = 1;
		result.IsEditorOnly = false;
		return result;
	}
}
namespace Hallow.LethalCompany.HallowsEnemySkins;

[BepInPlugin("HallowsMods", "HallowsEnemySkins", "1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class HallowsEnemySkinsPlugin : BaseUnityPlugin
{
	public const string modGUID = "HallowsMods";

	public const string modName = "HallowsEnemySkins";

	public const string modVersion = "1.0.0";

	private void Awake()
	{
		//IL_003a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0064: Unknown result type (might be due to invalid IL or missing references)
		//IL_008e: Unknown result type (might be due to invalid IL or missing references)
		//IL_00b8: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e2: 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_0136: Unknown result type (might be due to invalid IL or missing references)
		//IL_0160: Unknown result type (might be due to invalid IL or missing references)
		AssetBundle val = AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "AssetBundles/Hallow_HallowsEnemySkins_SkinAssets"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<GhostGirlSkin>("Assets/Pokemon/Ghost Girl Line/Gengar/GengarGirl.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[0], 0.25f, 0.15f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<GhostGirlSkin>("Assets/Pokemon/Ghost Girl Line/Haunter/HaunterGirl.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[0], 0.35f, 0.25f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<GhostGirlSkin>("Assets/Pokemon/Ghost Girl Line/Gastly/GastlyGirl.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[0], 0.5f, 0.2f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<ThumperSkin>("Assets/Zelda/Tingle/Tingle.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[0], 0.35f, 0.25f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<ThumperSkin>("Assets/Pokemon/Thumper/Slaking/Slaking.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[0], 0.15f, 0.1f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<BrackenSkin>("Assets/Minecraft/Enderman/Enderman.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[0], 0.2f, 0.1f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<BaboonHawkSkin>("Assets/Memes/Shrek/ShrekHawk.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[0], 0.01f, 0.5f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<BrackenSkin>("Assets/Memes/WWE/JohnCena.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[0], 0.4f, 0.5f));
	}
}