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 Lethal Wardrobe API v0.1.2
LethalWardrobeAPI.dll
Decompiled 2 years agousing System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using LethalWardrobe.Model.Suit; using LethalWardrobeAPI.Model.Suit; using Microsoft.CodeAnalysis; 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: IgnoresAccessChecksTo("Unity.Netcode.Runtime")] [assembly: AssemblyCompany("LethalWardrobeAPI")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+5c612c1d22004b81c1e0866817006f7f835898b1")] [assembly: AssemblyProduct("LethalWardrobeAPI")] [assembly: AssemblyTitle("LethalWardrobeAPI")] [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.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } [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; } } } namespace LethalWardrobe.Model.Factories { public interface IListFactory<T> { List<T> Create(); } } namespace LethalWardrobe.Model.Suit { public interface ISuit { ulong Id { get; set; } string UnlockableName { get; set; } Material SuitMaterial { get; set; } bool IsDefault { get; set; } } } namespace LethalWardrobe.Model.Suit.Store { public interface IPurchasable { int Price { get; set; } } } namespace LethalWardrobeAPI { public static class MyPluginInfo { public const string PLUGIN_GUID = "LethalWardrobeAPI"; public const string PLUGIN_NAME = "LethalWardrobeAPI"; public const string PLUGIN_VERSION = "1.0.0"; } } namespace LethalWardrobeAPI.Model { public interface IApiLoader { ISuitManager SuitManager { get; } } public class LethalWardrobeApi { private static readonly Lazy<LethalWardrobeApi> instance = new Lazy<LethalWardrobeApi>(() => new LethalWardrobeApi()); private ISuitManager _suitManager; public static LethalWardrobeApi Instance => instance.Value; public void Initialize(BaseUnityPlugin plugin) { IApiLoader apiLoader = Object.FindObjectsByType<MonoBehaviour>((FindObjectsInactive)1, (FindObjectsSortMode)0).OfType<IApiLoader>().ToArray()[0]; _suitManager = apiLoader.SuitManager; Debug.Log((object)"Initialized Lethal Wardrobe API"); } public ISuit? GetSuit(ulong id) { return _suitManager.GetSuit(id); } public List<ISuit> GetSuits() { return _suitManager.GetSuits(); } } } namespace LethalWardrobeAPI.Model.Suit { public interface ISuitManager { void RegisterSuit(ISuit suit); void UnregisterSuit(ulong id); ISuit? GetSuit(ulong id); List<ISuit> GetSuits(); } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } [BepInPlugin("Curiosity_Core-Lethal_Wardrobe_API", "Lethal Wardrobe", "0.1.2")] public class Api : BaseUnityPlugin { private const string ModGuid = "Curiosity_Core-Lethal_Wardrobe_API"; private const string ModName = "Lethal Wardrobe"; private const string ModVersion = "0.1.2"; } }