using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx.Logging; using InscryptionAPI; using Microsoft.CodeAnalysis; using MonoMod; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] [assembly: AssemblyCompany("APIPatcher")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+c2c1d85e82ab55ad3b88eceba9182618d37c1e16")] [assembly: AssemblyProduct("APIPatcher")] [assembly: AssemblyTitle("APIPatcher")] [assembly: AssemblyVersion("1.0.0.0")] [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; } } } namespace APIPatcher { [MonoModPatch("global::ScriptableObjectLoader`1")] internal class patch_ScriptableObjectLoader : ScriptableObjectLoader where T : Object { public static List AllData { get { InscryptionAPIPlugin.InvokeSOLEvent(typeof(T)); ScriptableObjectLoader.LoadData(""); return ScriptableObjectLoader.allData; } } } [MonoModPatch("global::Singleton`1")] internal class patch_Singleton : Singleton where T : ManagedBehaviour { protected static void FindInstance() { if ((Object)(object)Singleton.m_Instance == (Object)null) { T val = Object.FindObjectOfType(); if ((Object)(object)val == (Object)null) { Singleton.SingletonLogSource.LogWarning((object)("Got null in Singleton<" + typeof(T).FullName + ">.FindInstance")); } Singleton.m_Instance = val; } } } internal static class Singleton { internal static readonly ManualLogSource SingletonLogSource = Logger.CreateLogSource("Singleton"); } }