Decompiled source of Benj Bug v1.0.0

plugins/BenjBug/BenjBug.dll

Decompiled 14 hours 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()
	{
		return new MonoScriptData
		{
			FilePathsData = new byte[63]
			{
				0, 0, 0, 1, 0, 0, 0, 55, 92, 65,
				115, 115, 101, 116, 115, 92, 66, 101, 110, 106,
				66, 117, 103, 83, 116, 97, 103, 105, 110, 103,
				92, 112, 108, 117, 103, 105, 110, 115, 92, 66,
				101, 110, 106, 66, 117, 103, 92, 66, 101, 110,
				106, 66, 117, 103, 80, 108, 117, 103, 105, 110,
				46, 99, 115
			},
			TypesData = new byte[47]
			{
				0, 0, 0, 0, 42, 77, 97, 116, 116, 105,
				101, 46, 76, 101, 116, 104, 97, 108, 67, 111,
				109, 112, 97, 110, 121, 46, 66, 101, 110, 106,
				66, 117, 103, 124, 66, 101, 110, 106, 66, 117,
				103, 80, 108, 117, 103, 105, 110
			},
			TotalFiles = 1,
			TotalTypes = 1,
			IsEditorOnly = false
		};
	}
}
namespace Mattie.LethalCompany.BenjBug;

[BepInPlugin("mattie.lethalcompany.benjbug", "BenjBug", "0.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class BenjBugPlugin : BaseUnityPlugin
{
	public const string modGUID = "mattie.lethalcompany.benjbug";

	public const string modName = "BenjBug";

	public const string modVersion = "0.0.0";

	private void Awake()
	{
		//IL_003b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0040: Unknown result type (might be due to invalid IL or missing references)
		//IL_0051: Unknown result type (might be due to invalid IL or missing references)
		//IL_0056: Unknown result type (might be due to invalid IL or missing references)
		//IL_0067: Unknown result type (might be due to invalid IL or missing references)
		//IL_006c: Unknown result type (might be due to invalid IL or missing references)
		//IL_007d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0082: Unknown result type (might be due to invalid IL or missing references)
		//IL_0093: Unknown result type (might be due to invalid IL or missing references)
		//IL_0098: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a9: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ae: Unknown result type (might be due to invalid IL or missing references)
		//IL_00bf: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c4: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d5: Unknown result type (might be due to invalid IL or missing references)
		//IL_00da: Unknown result type (might be due to invalid IL or missing references)
		//IL_00eb: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f0: Unknown result type (might be due to invalid IL or missing references)
		//IL_0102: Unknown result type (might be due to invalid IL or missing references)
		//IL_0107: Unknown result type (might be due to invalid IL or missing references)
		//IL_0119: Unknown result type (might be due to invalid IL or missing references)
		//IL_011e: Unknown result type (might be due to invalid IL or missing references)
		//IL_012d: Unknown result type (might be due to invalid IL or missing references)
		EnemySkinRegistry.RegisterSkin((Skin)(object)AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "AssetBundles/Mattie_BenjBug_SkinAssets")).LoadAsset<HoarderBugSkin>("Packages/com.antler-shed.enemy-skin-kit/BenjBug/BenjBugSkin.asset"), (DefaultSkinConfigData?)new DefaultSkinConfigData((DefaultSkinConfigEntry[])(object)new DefaultSkinConfigEntry[11]
		{
			new DefaultSkinConfigEntry("41", 100f),
			new DefaultSkinConfigEntry("220", 100f),
			new DefaultSkinConfigEntry("56", 100f),
			new DefaultSkinConfigEntry("21", 100f),
			new DefaultSkinConfigEntry("61", 100f),
			new DefaultSkinConfigEntry("20", 100f),
			new DefaultSkinConfigEntry("85", 100f),
			new DefaultSkinConfigEntry("7", 100f),
			new DefaultSkinConfigEntry("8", 100f),
			new DefaultSkinConfigEntry("68", 100f),
			new DefaultSkinConfigEntry("5", 100f)
		}, 1f, 0f));
	}
}