Decompiled source of DistinctEnemyVariety v1.0.0

plugins/DistinctEnemyVariety/DistinctEnemyVariety.dll

Decompiled 2 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[102]
		{
			0, 0, 0, 1, 0, 0, 0, 94, 92, 65,
			115, 115, 101, 116, 115, 92, 68, 105, 115, 116,
			105, 110, 99, 116, 69, 110, 101, 109, 121, 86,
			97, 114, 105, 101, 116, 121, 83, 116, 97, 103,
			105, 110, 103, 92, 112, 108, 117, 103, 105, 110,
			115, 92, 68, 105, 115, 116, 105, 110, 99, 116,
			69, 110, 101, 109, 121, 86, 97, 114, 105, 101,
			116, 121, 92, 68, 105, 115, 116, 105, 110, 99,
			116, 69, 110, 101, 109, 121, 86, 97, 114, 105,
			101, 116, 121, 80, 108, 117, 103, 105, 110, 46,
			99, 115
		};
		result.TypesData = new byte[80]
		{
			0, 0, 0, 0, 75, 68, 105, 115, 116, 105,
			110, 99, 116, 66, 108, 97, 122, 101, 46, 76,
			101, 116, 104, 97, 108, 67, 111, 109, 112, 97,
			110, 121, 46, 68, 105, 115, 116, 105, 110, 99,
			116, 69, 110, 101, 109, 121, 86, 97, 114, 105,
			101, 116, 121, 124, 68, 105, 115, 116, 105, 110,
			99, 116, 69, 110, 101, 109, 121, 86, 97, 114,
			105, 101, 116, 121, 80, 108, 117, 103, 105, 110
		};
		result.TotalFiles = 1;
		result.TotalTypes = 1;
		result.IsEditorOnly = false;
		return result;
	}
}
namespace DistinctBlaze.LethalCompany.DistinctEnemyVariety;

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

	public const string modName = "DistinctEnemyVariety";

	public const string modVersion = "1.0.0";

	private void Awake()
	{
		//IL_003c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0041: Unknown result type (might be due to invalid IL or missing references)
		//IL_0050: Unknown result type (might be due to invalid IL or missing references)
		//IL_007c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0081: Unknown result type (might be due to invalid IL or missing references)
		//IL_0090: Unknown result type (might be due to invalid IL or missing references)
		//IL_00bc: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c1: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d0: Unknown result type (might be due to invalid IL or missing references)
		//IL_00fc: Unknown result type (might be due to invalid IL or missing references)
		//IL_0101: Unknown result type (might be due to invalid IL or missing references)
		//IL_0110: Unknown result type (might be due to invalid IL or missing references)
		//IL_014c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0151: 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)
		//IL_018c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0191: Unknown result type (might be due to invalid IL or missing references)
		//IL_01a0: Unknown result type (might be due to invalid IL or missing references)
		//IL_01cc: Unknown result type (might be due to invalid IL or missing references)
		//IL_01d1: Unknown result type (might be due to invalid IL or missing references)
		//IL_01e0: Unknown result type (might be due to invalid IL or missing references)
		//IL_020c: Unknown result type (might be due to invalid IL or missing references)
		//IL_0211: Unknown result type (might be due to invalid IL or missing references)
		//IL_0220: Unknown result type (might be due to invalid IL or missing references)
		AssetBundle val = AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "AssetBundles/DistinctBlaze_DistinctEnemyVariety_SkinAssets"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<CoilheadSkin>("Assets/Work/DistinctEnemyVariety/Enemies/Coilhead/CoilheadSkin.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[1]
		{
			new DefaultSkinConfigEntry("77 Volition", 1f)
		}, 0f, 0f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<GhostGirlSkin>("Assets/Work/DistinctEnemyVariety/Enemies/Ghost Girl/GhostGirlSkin.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[1]
		{
			new DefaultSkinConfigEntry("77 Volition", 1f)
		}, 0f, 0f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<HygrodereSkin>("Assets/Work/DistinctEnemyVariety/Enemies/Hygrodere/CaveSlimeTex.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[1]
		{
			new DefaultSkinConfigEntry("16 Attenuation", 1f)
		}, 0f, 0f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<OldBirdSkin>("Assets/Work/DistinctEnemyVariety/Enemies/Old Bird/OldBirdSkin.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[1]
		{
			new DefaultSkinConfigEntry("16 Attenuation", 1f)
		}, 0f, 0f));
		EnemySkinRegistry.RegisterNestSkin((NestSkin)(object)val.LoadAsset<OldBirdSkin>("Assets/Work/DistinctEnemyVariety/Enemies/Old Bird/OldBirdSkin.asset"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<SnareFleaSkin>("Assets/Work/DistinctEnemyVariety/Enemies/Snare Flea/SnareFleaSkin.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[1]
		{
			new DefaultSkinConfigEntry("16 Attenuation", 1f)
		}, 0f, 0f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<TulipSnakeSkin>("Assets/Work/DistinctEnemyVariety/Enemies/Tulip Snake/TulipSnakeSkin.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[1]
		{
			new DefaultSkinConfigEntry("77 Volition", 1f)
		}, 0f, 0f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<TulipSnakeSkin>("Assets/Work/DistinctEnemyVariety/Enemies/Tulip Snake/TulipSnakeSkin 1.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[1]
		{
			new DefaultSkinConfigEntry("77 Volition", 1f)
		}, 0f, 0f));
		EnemySkinRegistry.RegisterSkin((Skin)(object)val.LoadAsset<TulipSnakeSkin>("Assets/Work/DistinctEnemyVariety/Enemies/Tulip Snake/TulipSnakeSkin 2.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[1]
		{
			new DefaultSkinConfigEntry("77 Volition", 1f)
		}, 0f, 0f));
	}
}