Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of ReservedSoundboardSlot v1.0.1
ReservedSoundboardSlot.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using ReservedItemSlotCore.Data; 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: AssemblyCompany("Enchanted Games")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("Gives you an extra slot for the meme soundboard.")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("ReservedSoundboardSlot")] [assembly: AssemblyTitle("ReservedSoundboardSlot")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } public static class ReservedItemSlotsCompat { public static void AddItemsToReservedItemSlots() { //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0021: Unknown result type (might be due to invalid IL or missing references) //IL_0027: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002e: Expected O, but got Unknown ReservedItemSlotData val = ReservedItemSlotData.CreateReservedItemSlotData("soundboard_item_slot", 20, 100); ReservedItemData val2 = new ReservedItemData("Soundboard", (PlayerBone)0, default(Vector3), default(Vector3)); val.AddItemToReservedItemSlot(val2); } } namespace ReservedSoundboardSlot { public static class PluginInfo { public const string PLUGIN_ID = "ReservedSoundboardSlot"; public const string PLUGIN_NAME = "ReservedSoundboardSlot"; public const string PLUGIN_VERSION = "1.0.0"; public const string PLUGIN_GUID = "games.enchanted.ReservedSoundboardSlot"; } [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("games.enchanted.ReservedSoundboardSlot", "ReservedSoundboardSlot", "1.0.0")] public class Plugin : BaseUnityPlugin { public ManualLogSource PluginLogger; public static Plugin Instance { get; private set; } private void Awake() { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Expected O, but got Unknown Instance = this; PluginLogger = ((BaseUnityPlugin)this).Logger; Harmony val = new Harmony("games.enchanted.ReservedSoundboardSlot"); val.PatchAll(); PluginLogger.LogInfo((object)"Plugin ReservedSoundboardSlot (games.enchanted.ReservedSoundboardSlot) has been summoned!"); ReservedItemSlotsCompat.AddItemsToReservedItemSlots(); } } }