Decompiled source of MulticolorSlimes v0.1.15

plugins/MulticolorSlimes/MulticolorSlimes.dll

Decompiled a day 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[90]
		{
			0, 0, 0, 1, 0, 0, 0, 82, 92, 65,
			115, 115, 101, 116, 115, 92, 77, 117, 108, 116,
			105, 99, 111, 108, 111, 114, 83, 108, 105, 109,
			101, 115, 83, 116, 97, 103, 105, 110, 103, 92,
			112, 108, 117, 103, 105, 110, 115, 92, 77, 117,
			108, 116, 105, 99, 111, 108, 111, 114, 83, 108,
			105, 109, 101, 115, 92, 77, 117, 108, 116, 105,
			99, 111, 108, 111, 114, 83, 108, 105, 109, 101,
			115, 80, 108, 117, 103, 105, 110, 46, 99, 115
		};
		result.TypesData = new byte[71]
		{
			0, 0, 0, 0, 66, 97, 108, 111, 97, 102,
			111, 102, 98, 114, 101, 97, 100, 46, 76, 101,
			116, 104, 97, 108, 67, 111, 109, 112, 97, 110,
			121, 46, 77, 117, 108, 116, 105, 99, 111, 108,
			111, 114, 83, 108, 105, 109, 101, 115, 124, 77,
			117, 108, 116, 105, 99, 111, 108, 111, 114, 83,
			108, 105, 109, 101, 115, 80, 108, 117, 103, 105,
			110
		};
		result.TotalFiles = 1;
		result.TotalTypes = 1;
		result.IsEditorOnly = false;
		return result;
	}
}
namespace aloafofbread.LethalCompany.MulticolorSlimes;

[BepInPlugin("aloafofbread.slimetest", "MulticolorSlimes", "0.1.15")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class MulticolorSlimesPlugin : BaseUnityPlugin
{
	public const string modGUID = "aloafofbread.slimetest";

	public const string modName = "MulticolorSlimes";

	public const string modVersion = "0.1.15";

	private void Awake()
	{
		AssetBundle obj = AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "AssetBundles/aloafofbread_MulticolorSlimes_SkinAssets"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)obj.LoadAsset<HygrodereSkin>("Assets/SlimesLikeDancing/SlimesEatPeople/redslime.asset"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)obj.LoadAsset<HygrodereSkin>("Assets/SlimesLikeDancing/SlimesEatPeople/pinkslime.asset"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)obj.LoadAsset<HygrodereSkin>("Assets/SlimesLikeDancing/SlimesEatPeople/purpleslime.asset"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)obj.LoadAsset<HygrodereSkin>("Assets/SlimesLikeDancing/SlimesEatPeople/blueslime.asset"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)obj.LoadAsset<HygrodereSkin>("Assets/SlimesLikeDancing/SlimesEatPeople/cyanslime.asset"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)obj.LoadAsset<HygrodereSkin>("Assets/SlimesLikeDancing/SlimesEatPeople/greenslime.asset"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)obj.LoadAsset<HygrodereSkin>("Assets/SlimesLikeDancing/SlimesEatPeople/yellowslime.asset"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)obj.LoadAsset<HygrodereSkin>("Assets/SlimesLikeDancing/SlimesEatPeople/orangeslime.asset"));
		EnemySkinRegistry.RegisterSkin((Skin)(object)obj.LoadAsset<HygrodereSkin>("Assets/SlimesLikeDancing/SlimesEatPeople/rainbowslime.asset"));
	}
}