using System;
using System.Collections;
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 BepInEx.Bootstrap;
using BepInEx.Configuration;
using BepInEx.Logging;
using CUCoreLib.Data;
using CUCoreLib.Helpers;
using CUCoreLib.Registries;
using HarmonyLib;
using Md.Body;
using Md.CargoMinigame;
using Md.EndLabScript;
using Md.GlobalDark;
using Md.MoodleManager;
using Md.SandboxCourse;
using Microsoft.CodeAnalysis;
using Mono.Cecil.Cil;
using MonoDetour;
using MonoDetour.Cil;
using MonoDetour.DetourTypes;
using MonoDetour.HookGen;
using MonoDetour.Reflection.Unspeakable;
using MonoMod.Cil;
using MonoMod.Utils;
using TMPro;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: IgnoresAccessChecksTo("CUCoreLib")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("McAwesome")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("2.2.0.0")]
[assembly: AssemblyInformationalVersion("2.2.0+23849bbace7e8ec7e959c2bbd43eff178383b5af")]
[assembly: AssemblyProduct("Make (blank) kill you")]
[assembly: AssemblyTitle("McAwesome.CU.MakeBlankKillYou")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("2.2.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[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]
[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]
[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;
}
}
}
internal sealed class ConfigurationManagerAttributes
{
public delegate void CustomHotkeyDrawerFunc(ConfigEntryBase setting, ref bool isCurrentlyAcceptingInput);
public bool? ShowRangeAsPercent;
public Action<ConfigEntryBase> CustomDrawer;
public CustomHotkeyDrawerFunc CustomHotkeyDrawer;
public bool? Browsable;
public string Category;
public object DefaultValue;
public bool? HideDefaultButton;
public bool? HideSettingName;
public string Description;
public string DispName;
public int? Order;
public bool? ReadOnly;
public bool? IsAdvanced;
public Func<object, string> ObjToStr;
public Func<string, object> StrToObj;
}
namespace Md.SandboxCourse
{
internal static class Sequence
{
public delegate void PrefixSignature(SandboxCourse self);
public delegate void PostfixSignature(SandboxCourse self, ref IEnumerator returnValue);
public delegate void PrefixMoveNextSignature(SpeakableEnumerator<object> self);
public delegate void PostfixMoveNextSignature(SpeakableEnumerator<object> self, ref bool continueEnumeration);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MonoDetourHook PrefixMoveNext(PrefixMoveNextSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>((MethodBase)StateMachineTarget(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook PostfixMoveNext(PostfixMoveNextSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>((MethodBase)StateMachineTarget(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHookMoveNext(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook((MethodBase)StateMachineTarget(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(SandboxCourse).GetMethod("Sequence", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("SandboxCourse", "Sequence");
}
public static MethodInfo StateMachineTarget()
{
return Extensions.GetStateMachineTarget((MethodInfo)Target());
}
}
internal static class LocaleName
{
}
internal static class _ctor
{
}
internal static class __c
{
internal static class _ctor
{
}
}
internal static class _Sequence_d__0
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
}
namespace Md.CargoMinigame
{
internal static class Update
{
public delegate void PrefixSignature(CargoMinigame self, ref List<RaycastResult> uiCasts);
public delegate void PostfixSignature(CargoMinigame self, ref List<RaycastResult> uiCasts);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(CargoMinigame).GetMethod("Update", (BindingFlags)(-1), null, new Type[1] { typeof(List<RaycastResult>) }, null) ?? throw new MissingMethodException("CargoMinigame", "Update");
}
}
internal static class HandType
{
}
internal static class GuideLocaleString
{
}
internal static class NeedsItem
{
}
internal static class HandRotOffset
{
}
internal static class CanExit
{
}
internal static class _ctor
{
}
internal static class Start
{
}
internal static class PhysicsUpdate
{
}
}
namespace Md.MoodleManager
{
internal static class Awake
{
public delegate void PrefixSignature(MoodleManager self);
public delegate void PostfixSignature(MoodleManager self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(MoodleManager).GetMethod("Awake", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("MoodleManager", "Awake");
}
}
internal static class Update
{
public delegate void PrefixSignature(MoodleManager self);
public delegate void PostfixSignature(MoodleManager self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(MoodleManager).GetMethod("Update", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("MoodleManager", "Update");
}
}
internal static class AddAllMoodles
{
public delegate void PrefixSignature(MoodleManager self);
public delegate void PostfixSignature(MoodleManager self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(MoodleManager).GetMethod("AddAllMoodles", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("MoodleManager", "AddAllMoodles");
}
}
internal static class AddMoodle
{
public delegate void PrefixSignature(MoodleManager self, ref int intensity, ref string icon, ref string name, ref string desc, ref bool critical, ref bool chippedOnly);
public delegate void PostfixSignature(MoodleManager self, ref int intensity, ref string icon, ref string name, ref string desc, ref bool critical, ref bool chippedOnly);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(MoodleManager).GetMethod("AddMoodle", (BindingFlags)(-1), null, new Type[6]
{
typeof(int),
typeof(string),
typeof(string),
typeof(string),
typeof(bool),
typeof(bool)
}, null) ?? throw new MissingMethodException("MoodleManager", "AddMoodle");
}
}
internal static class get_showSideMoodles
{
}
internal static class Start
{
}
internal static class ClearMoodles
{
}
internal static class UpdatePrevMoodles
{
}
internal static class UpdateMoodles
{
}
internal static class _ctor
{
}
}
namespace Md.GlobalDark
{
internal static class Awake
{
public delegate void PrefixSignature(GlobalDark self);
public delegate void PostfixSignature(GlobalDark self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(GlobalDark).GetMethod("Awake", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("GlobalDark", "Awake");
}
}
internal static class Update
{
public delegate void PrefixSignature(GlobalDark self);
public delegate void PostfixSignature(GlobalDark self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(GlobalDark).GetMethod("Update", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("GlobalDark", "Update");
}
}
internal static class get_uiScale
{
}
internal static class get_forceDisable
{
}
internal static class get_showTooltip
{
}
internal static class get_distortionAmount
{
}
internal static class SetTooltip
{
}
internal static class GetDeterministicRandom
{
}
internal static class GetDeterministicRandomChar
{
}
internal static class IsCharOutsideAngleBrackets
{
}
internal static class DistortStr
{
}
internal static class HandleTooltip
{
}
internal static class Darken
{
}
internal static class IsDarkening
{
}
internal static class SetDarkAmount
{
}
internal static class SetStayDark
{
}
internal static class SetSpeedMultiplier
{
}
internal static class CheckForDark
{
}
internal static class _ctor
{
}
}
namespace Md.EndLabScript
{
internal static class Awake
{
public delegate void PrefixSignature(EndLabScript self);
public delegate void PostfixSignature(EndLabScript self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(EndLabScript).GetMethod("Awake", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("EndLabScript", "Awake");
}
}
internal static class Update
{
public delegate void PrefixSignature(EndLabScript self);
public delegate void PostfixSignature(EndLabScript self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(EndLabScript).GetMethod("Update", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("EndLabScript", "Update");
}
}
internal static class EscapeCoroutine
{
public delegate void PrefixSignature(EndLabScript self);
public delegate void PostfixSignature(EndLabScript self, ref IEnumerator returnValue);
public delegate void PrefixMoveNextSignature(SpeakableEnumerator<object, EndLabScript> self);
public delegate void PostfixMoveNextSignature(SpeakableEnumerator<object, EndLabScript> self, ref bool continueEnumeration);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MonoDetourHook PrefixMoveNext(PrefixMoveNextSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>((MethodBase)StateMachineTarget(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook PostfixMoveNext(PostfixMoveNextSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>((MethodBase)StateMachineTarget(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHookMoveNext(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook((MethodBase)StateMachineTarget(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(EndLabScript).GetMethod("EscapeCoroutine", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("EndLabScript", "EscapeCoroutine");
}
public static MethodInfo StateMachineTarget()
{
return Extensions.GetStateMachineTarget((MethodInfo)Target());
}
}
internal static class get_body
{
}
internal static class get_cam
{
}
internal static class Start
{
}
internal static class ScientistCutscene
{
}
internal static class BeginEscapeSequence
{
}
internal static class SetLightsColor
{
}
internal static class ForceBaseStats
{
}
internal static class _ctor
{
}
internal static class __c
{
internal static class _ctor
{
}
}
internal static class __c__DisplayClass39_0
{
internal static class _ctor
{
}
}
internal static class _EscapeCoroutine_d__39
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
internal static class _ScientistCutscene_d__37
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
}
namespace Md.Body
{
internal static class Awake
{
public delegate void PrefixSignature(Body self);
public delegate void PostfixSignature(Body self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(Body).GetMethod("Awake", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("Body", "Awake");
}
}
internal static class EmbedCargo
{
public delegate void PrefixSignature(Body self);
public delegate void PostfixSignature(Body self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(Body).GetMethod("EmbedCargo", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("Body", "EmbedCargo");
}
}
internal static class RemoveCargo
{
public delegate void PrefixSignature(Body self);
public delegate void PostfixSignature(Body self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(Body).GetMethod("RemoveCargo", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("Body", "RemoveCargo");
}
}
internal static class TryLastStand
{
public delegate void PrefixSignature(Body self);
public delegate void PostfixSignature(Body self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(Body).GetMethod("TryLastStand", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("Body", "TryLastStand");
}
}
internal static class Update
{
public delegate void PrefixSignature(Body self);
public delegate void PostfixSignature(Body self);
public static MonoDetourHook Prefix(PrefixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PrefixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook Postfix(PostfixSignature hook, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).Hook<PostfixDetour>(Target(), (Delegate)hook, config, applyByDefault);
}
public static MonoDetourHook ILHook(Manipulator manipulator, MonoDetourConfig? config = null, bool applyByDefault = true, MonoDetourManager? manager = null)
{
return (manager ?? DefaultMonoDetourManager.Instance).ILHook(Target(), manipulator, config, applyByDefault);
}
public static MethodBase Target()
{
return typeof(Body).GetMethod("Update", (BindingFlags)(-1), null, Array.Empty<Type>(), null) ?? throw new MissingMethodException("Body", "Update");
}
}
internal static class get_bloodRegenSpeed
{
}
internal static class get_actualStaminaStrength
{
}
internal static class get_canTakeNap
{
}
internal static class get_shouldCheckHealthPanel
{
}
internal static class bloodToLiters
{
}
internal static class bloodToLitersBody
{
}
internal static class get_legSpeedMult
{
}
internal static class get_actualMaxSpeed
{
}
internal static class get_actualWallSlideSlowdown
{
}
internal static class get_actualJumpSpeed
{
}
internal static class get_actualMoveForce
{
}
internal static class get_canWalljumpLeft
{
}
internal static class get_canWalljumpRight
{
}
internal static class get_fibrillationRising
{
}
internal static class get_brainDying
{
}
internal static class get_bloodVolumePercentage
{
}
internal static class get_inCardiacArrest
{
}
internal static class get_totalHappiness
{
}
internal static class get_alive
{
}
internal static class get_conscious
{
}
internal static class get_aboveMedicalCutoff
{
}
internal static class get_allowUseItem
{
}
internal static class get_currentWeightMovementMult
{
}
internal static class set_currentWeightMovementMult
{
}
internal static class get_currentTemperatureMovementMult
{
}
internal static class set_currentTemperatureMovementMult
{
}
internal static class get_peekingBehind
{
}
internal static class get_BaseHungerRate
{
}
internal static class BaseThirstRate
{
}
internal static class get_hungerLimbHealCurrent
{
}
internal static class set_hungerLimbHealCurrent
{
}
internal static class get_bothHandsUnusable
{
}
internal static class get_baseTemperatureLerpRate
{
}
internal static class get_canPlaceBlock
{
}
internal static class get_clawGrowthRate
{
}
internal static class get_isDying
{
}
internal static class get_isCriticallyDying
{
}
internal static class get_exercising
{
}
internal static class set_exercising
{
}
internal static class get_bleedClottingSpeed
{
}
internal static class set_bleedClottingSpeed
{
}
internal static class get_bleedingSpeedMultiplier
{
}
internal static class set_bleedingSpeedMultiplier
{
}
internal static class get_thirstBloodPressure
{
}
internal static class set_thirstBloodPressure
{
}
internal static class get_respiratoryRateReadout
{
}
internal static class set_respiratoryRateReadout
{
}
internal static class get_canRead
{
}
internal static class DoWorkout
{
}
internal static class BumpUpSleepQuality
{
}
internal static class StartClimbing
{
}
internal static class StopClimbing
{
}
internal static class HasHearingProtection
{
}
internal static class AutoPickUpItem
{
}
internal static class GetAllItemsThorough
{
}
internal static class GetSurfaceInventoryItems
{
}
internal static class FindByTagThorough
{
}
internal static class FindByIdThorough
{
}
internal static class FindByIdSurface
{
}
internal static class AverageHappiness
{
}
internal static class TryStartFibrillation
{
}
internal static class HandleCirculation
{
}
internal static class GetECGHeight
{
}
internal static class SleepQualityToRegen
{
}
internal static class LastHappinessUpdater
{
}
internal static class DoFurTuft
{
}
internal static class SwitchHands
{
}
internal static class RemoveEye
{
}
internal static class PromptTalk
{
}
internal static class FootStep
{
}
internal static class SwitchDir
{
}
internal static class Disfigure
{
}
internal static class CombineLiquids
{
}
internal static class CombineItems
{
}
internal static class CanCombine
{
}
internal static class HoldingItem_Item
{
}
internal static class HoldingItem_System_String
{
}
internal static class HoldingItem_System_Int32
{
}
internal static class SlotOf
{
}
internal static class GetItem
{
}
internal static class DoPickupCheck
{
}
internal static class PickUpItem
{
}
internal static class SwapSlots
{
}
internal static class DropItem_System_Int32
{
}
internal static class DropItem_Item
{
}
internal static class FirstEmptySlot
{
}
internal static class LimbByName
{
}
internal static class GetTopOfExtremity
{
}
internal static class WearWearable
{
}
internal static class DropWearable
{
}
internal static class GetWearable
{
}
internal static class HasWearable_System_String
{
}
internal static class HasWearable_Item
{
}
internal static class GetWearableBySlotID_System_String
{
}
internal static class GetWearableBySlotID_System_String_Limb
{
}
internal static class GetAllWearables
{
}
internal static class GetAllItems
{
}
internal static class ThrowVelocity
{
}
internal static class ThrowItem
{
}
internal static class Stand
{
}
internal static class Ragdoll
{
}
internal static class PlaceBody
{
}
internal static class Start
{
}
internal static class TheCoroutineThatMakesYouShitYourselfWhenUnconscious
{
}
internal static class OnCollisionEnter2D
{
}
internal static class GetClosestLimb
{
}
internal static class GetAttackingLimb
{
}
internal static class Attack
{
}
internal static class Scream
{
}
internal static class TryStepUp
{
}
internal static class CreateCloudBig
{
}
internal static class CreateCloudSmall
{
}
internal static class SetVelocity
{
}
internal static class CreateCloudMini
{
}
internal static class TryExertSound
{
}
internal static class Jump
{
}
internal static class GetTotalEncumberance
{
}
internal static class Burp
{
}
internal static class Eat_System_Single_System_Single_System_Int32
{
}
internal static class Eat_System_Single_System_Single
{
}
internal static class FixedUpdate
{
}
internal static class HandleClimbing
{
}
internal static class Crawl
{
}
internal static class DoGoreSound
{
}
internal static class UseItemInHand
{
}
internal static class DoUnarmedAttack
{
}
internal static class UseItem
{
}
internal static class TakeANap
{
}
internal static class NapCoroutine
{
}
internal static class AltNapCoroutine
{
}
internal static class SetLimbCollisionType
{
}
internal static class OnDrawGizmos
{
}
internal static class WaterShake
{
}
internal static class HandleGroundedState
{
}
internal static class HandleSounds
{
}
internal static class HandleBody
{
}
internal static class WakeUp
{
}
internal static class HandlePhysics
{
}
internal static class HandleVisuals
{
}
internal static class HandleDogWaterShaking
{
}
internal static class HandleVariableUpdates
{
}
internal static class HandleBodyTemperature
{
}
internal static class HandlePeriodicChecks
{
}
internal static class HandleRadiationSickness
{
}
internal static class GetTotalInsulation
{
}
internal static class BrainDamageRagdoll
{
}
internal static class IntBleedingClamped
{
}
internal static class Drink
{
}
internal static class LimbFromObject
{
}
internal static class BrainControlReverse
{
}
internal static class BrainQuake
{
}
internal static class Cry
{
}
internal static class Remap
{
}
internal static class ScaldSound
{
}
internal static class InOutSine
{
}
internal static class Heal
{
}
internal static class _ctor
{
}
internal static class _cctor
{
}
internal static class SleepQuality
{
internal static class _ctor
{
}
}
internal static class WorkoutType
{
internal static class _ctor
{
}
}
internal static class LimbNum
{
internal static class _ctor
{
}
}
internal static class __c
{
internal static class _ctor
{
}
}
internal static class _AltNapCoroutine_d__407
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
internal static class _BrainControlReverse_d__428
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
internal static class _BrainDamageRagdoll_d__424
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
internal static class _BrainQuake_d__429
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
internal static class _Crawl_d__400
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
internal static class _Cry_d__430
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
internal static class _DoWorkout_d__321
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
internal static class _LastHappinessUpdater_d__342
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
internal static class _NapCoroutine_d__406
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
internal static class _TheCoroutineThatMakesYouShitYourselfWhenUnconscious_d__381
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
internal static class _WaterShake_d__410
{
internal static class _ctor
{
}
internal static class System_IDisposable_Dispose
{
}
internal static class MoveNext
{
}
internal static class System_Collections_Generic_IEnumerator_System_Object__get_Current
{
}
internal static class System_Collections_IEnumerator_Reset
{
}
internal static class System_Collections_IEnumerator_get_Current
{
}
}
}
namespace MonoDetour.HookGen
{
internal static class DefaultMonoDetourManager
{
internal static MonoDetourManager Instance { get; } = New();
internal static MonoDetourManager New()
{
//IL_0019: Unknown result type (might be due to invalid IL or missing references)
//IL_001f: Expected O, but got Unknown
return new MonoDetourManager(typeof(DefaultMonoDetourManager).Assembly.GetName().Name);
}
}
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
internal class MonoDetourTargetsAttribute(Type? targetType = null) : Attribute(), IMonoDetourTargets
{
public Type? TargetType { get; } = targetType;
public bool IncludeNestedTypes { get; set; } = true;
public string[]? Members { get; set; }
public string[]? MemberNamePrefixes { get; set; }
public string[]? MemberNameSuffixes { get; set; }
public bool GenerateControlFlowVariants { get; set; }
}
}
namespace MakeBlankKillYou
{
[BepInPlugin("McAwesome.CU.MakeBlankKillYou", "Make (blank) kill you", "2.2.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class Plugin : BaseUnityPlugin
{
public static class ModListCompatibility
{
private static bool? _enabled;
private static Version _version;
private static bool? _compatibleVersion;
private static bool initialized;
public static bool Enabled
{
get
{
bool valueOrDefault = _enabled == true;
if (!_enabled.HasValue)
{
valueOrDefault = Chainloader.PluginInfos.ContainsKey("McAwesome.CU.ModList");
_enabled = valueOrDefault;
}
return _enabled.Value;
}
}
public static Version Version
{
get
{
if ((object)_version == null)
{
_version = GeneralExtensions.GetValueSafe<string, PluginInfo>(Chainloader.PluginInfos, "McAwesome.CU.ModList").Metadata.Version;
}
return _version;
}
}
public static bool CompatibleVersion
{
get
{
bool valueOrDefault = _compatibleVersion == true;
if (!_compatibleVersion.HasValue)
{
valueOrDefault = Enabled && Version >= new Version("1.0.0") && Version < new Version("2.0.0");
_compatibleVersion = valueOrDefault;
}
return _compatibleVersion.Value;
}
}
public static void Init()
{
if (initialized)
{
return;
}
if (Enabled)
{
if (CompatibleVersion)
{
Logger.LogInfo((object)"Found Mod List");
}
else
{
Logger.LogWarning((object)string.Format("Found {0}, but version was incompatible (expected: >=1.0.0, <2.0.0; got: {1})", "Mod List", Version));
}
}
initialized = true;
}
}
public static class CUCoreLibCompatibility
{
private static bool? _enabled;
private static Version _version;
private static bool? _compatibleVersion;
private static bool initialized;
public static bool Enabled
{
get
{
bool valueOrDefault = _enabled == true;
if (!_enabled.HasValue)
{
valueOrDefault = Chainloader.PluginInfos.ContainsKey("net.cucorelib");
_enabled = valueOrDefault;
}
return _enabled.Value;
}
}
public static Version Version
{
get
{
if ((object)_version == null)
{
_version = GeneralExtensions.GetValueSafe<string, PluginInfo>(Chainloader.PluginInfos, "net.cucorelib").Metadata.Version;
}
return _version;
}
}
public static bool CompatibleVersion
{
get
{
bool valueOrDefault = _compatibleVersion == true;
if (!_compatibleVersion.HasValue)
{
valueOrDefault = Enabled && Version >= new Version("1.0.4") && Version < new Version("2.0.0");
_compatibleVersion = valueOrDefault;
}
return _compatibleVersion.Value;
}
}
public static void Init()
{
if (initialized)
{
return;
}
if (Enabled)
{
if (CompatibleVersion)
{
Logger.LogInfo((object)"Found CUCoreLib");
AddOptions();
}
else
{
Logger.LogWarning((object)string.Format("Found {0}, but version was incompatible (expected: >=1.0.4, <2.0.0; got: {1})", "CUCoreLib", Version));
}
}
initialized = true;
}
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
private static void AddOptions()
{
Logger.LogInfo((object)"Registering options with CUCoreLib");
bool ignoreChange = false;
ModOptionDefinition enabled = ModOptionDefinition.Bool("McAwesome.CU.MakeBlankKillYou.Enabled", "Instant Death", "Enable instant death from damage", "MBKY", Instance.configEnabled.Value, (Action<bool>)delegate(bool value)
{
UpdateConfig<bool>(Instance.configEnabled, value);
});
ModOptionDefinition allowLastStand = ModOptionDefinition.Bool("McAwesome.CU.MakeBlankKillYou.AllowLastStand", "Allow Last Stand", "Allow rolling for last stand", "MBKY", Instance.configAllowLastStand.Value, (Action<bool>)delegate(bool value)
{
UpdateConfig<bool>(Instance.configAllowLastStand, value);
});
ModOptionDefinition setConsciousness = ModOptionDefinition.Bool("McAwesome.CU.MakeBlankKillYou.SetConsciousness", "Fast Death Fade", "Sets consciousness to 0 on death", "MBKY", Instance.configSetConsciousness.Value, (Action<bool>)delegate(bool value)
{
UpdateConfig<bool>(Instance.configSetConsciousness, value);
});
ModOptionDefinition disableDuringEnding = ModOptionDefinition.Bool("McAwesome.CU.MakeBlankKillYou.DisableDuringEnding", "Disable during ending", "Disables the mod during the ending sequences. Note that they have special rules and don't allow for instant death anyway", "MBKY", Instance.configDisableDuringEnding.Value, (Action<bool>)delegate(bool value)
{
UpdateConfig<bool>(Instance.configDisableDuringEnding, value);
});
ModOptionsRegistry.Register(enabled);
ModOptionsRegistry.Register(allowLastStand);
ModOptionsRegistry.Register(setConsciousness);
ModOptionsRegistry.Register(disableDuringEnding);
((MonoBehaviour)Instance).StartCoroutine(SetDefaults());
Instance.configEnabled.SettingChanged += delegate
{
OnConfigChanged<bool, SettingBool>(Instance.configEnabled, enabled);
};
Instance.configAllowLastStand.SettingChanged += delegate
{
OnConfigChanged<bool, SettingBool>(Instance.configAllowLastStand, allowLastStand);
};
Instance.configSetConsciousness.SettingChanged += delegate
{
OnConfigChanged<bool, SettingBool>(Instance.configSetConsciousness, setConsciousness);
};
Instance.configDisableDuringEnding.SettingChanged += delegate
{
OnConfigChanged<bool, SettingBool>(Instance.configDisableDuringEnding, disableDuringEnding);
};
void OnConfigChanged<T, V>(ConfigEntry<T> config, ModOptionDefinition option) where V : Setting
{
if (!ignoreChange)
{
V val = Settings.Get<V>(option.Id);
if (val != null)
{
((Setting)val).SetValue((object)config.Value);
UpdateSettings((Setting)(object)val);
}
}
}
IEnumerator SetDefaults()
{
yield return (object)new WaitUntil((Func<bool>)(() => (Object)(object)SettingsMenu.instance != (Object)null && (Object)(object)((Component)SettingsMenu.instance).GetComponent<SettingsMenuCategoryExtender>() != (Object)null));
enabled.BoolDefault = (bool)((ConfigEntryBase)Instance.configEnabled).DefaultValue;
allowLastStand.BoolDefault = (bool)((ConfigEntryBase)Instance.configAllowLastStand).DefaultValue;
setConsciousness.BoolDefault = (bool)((ConfigEntryBase)Instance.configSetConsciousness).DefaultValue;
disableDuringEnding.BoolDefault = (bool)((ConfigEntryBase)Instance.configDisableDuringEnding).DefaultValue;
}
void UpdateConfig<T>(ConfigEntry<T> configEntry, T value)
{
ignoreChange = true;
configEntry.Value = value;
ignoreChange = false;
}
static void UpdateSettings(Setting setting)
{
Settings.SaveSettings();
SettingsMenu instance = SettingsMenu.instance;
string displayName = ModOptionsRegistry.GetCustomCategories().Find((ModOptionCategoryEntry category) => category.Category == setting.category).DisplayName;
if ((Object)(object)instance != (Object)null)
{
for (int num = 0; num < instance.buttons.Count; num++)
{
if ((Object)(object)((Component)instance.buttons[num]).GetComponent<Image>().sprite == (Object)(object)instance.buttonOpen)
{
TextMeshProUGUI componentInChildren = ((Component)instance.buttons[num]).GetComponentInChildren<TextMeshProUGUI>();
if ((Object)(object)componentInChildren != (Object)null && ((TMP_Text)componentInChildren).text == displayName)
{
SettingsMenuCategoryExtender.RefreshLiveMenu();
}
break;
}
}
}
}
}
}
internal static ManualLogSource Logger;
internal ConfigEntry<bool> configEnabled;
internal ConfigEntry<bool> configAllowLastStand;
internal ConfigEntry<bool> configSetConsciousness;
internal ConfigEntry<bool> configDisableDuringEnding;
public static Plugin Instance { get; private set; }
private void Awake()
{
//IL_0043: Unknown result type (might be due to invalid IL or missing references)
//IL_004d: Expected O, but got Unknown
//IL_0084: Unknown result type (might be due to invalid IL or missing references)
//IL_008e: Expected O, but got Unknown
//IL_00c6: Unknown result type (might be due to invalid IL or missing references)
//IL_00d0: Expected O, but got Unknown
//IL_0108: Unknown result type (might be due to invalid IL or missing references)
//IL_0112: Expected O, but got Unknown
Instance = this;
Logger = ((BaseUnityPlugin)this).Logger;
configEnabled = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "Enabled", true, new ConfigDescription("Enable the mod", (AcceptableValueBase)null, new object[1]
{
new ConfigurationManagerAttributes
{
Order = 0
}
}));
configAllowLastStand = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "AllowLastStand", true, new ConfigDescription("Allow last stand to happen", (AcceptableValueBase)null, new object[1]
{
new ConfigurationManagerAttributes
{
Order = -1
}
}));
configSetConsciousness = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "SetConsciousness", true, new ConfigDescription("Set consciousness on death (causes quicker death fade)", (AcceptableValueBase)null, new object[1]
{
new ConfigurationManagerAttributes
{
Order = -2
}
}));
configDisableDuringEnding = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "DisableDuringEnding", true, new ConfigDescription("Disables the mod during the ending sequences. Note that they have special rules and don't allow you to die anyway", (AcceptableValueBase)null, new object[1]
{
new ConfigurationManagerAttributes
{
Order = -3
}
}));
ModListCompatibility.Init();
CUCoreLibCompatibility.Init();
try
{
MonoDetourManager.InvokeHookInitializers(Assembly.GetExecutingAssembly());
}
catch (Exception ex)
{
Logger.LogError((object)"An error occurred while initializing hooks");
Logger.LogError((object)ex);
}
Logger.LogInfo((object)"Plugin McAwesome.CU.MakeBlankKillYou is loaded!");
}
internal static void LogHookError(string failedAction, string hookedMethod, Exception exception, string additionalInfo = null, LogLevel level = (LogLevel)2)
{
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
//IL_0058: Unknown result type (might be due to invalid IL or missing references)
if (additionalInfo != null)
{
additionalInfo += " ";
}
Logger.Log(level, (object)("Could not " + failedAction + " (in " + hookedMethod + "). " + additionalInfo + "See exception (below) for more information"));
Logger.Log(level, (object)exception);
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "McAwesome.CU.MakeBlankKillYou";
public const string PLUGIN_NAME = "Make (blank) kill you";
public const string PLUGIN_VERSION = "2.2.0";
}
}
namespace MakeBlankKillYou.Patches
{
[MonoDetourTargets(typeof(Body))]
public class BodyHooks
{
[MonoDetourHookInitialize]
internal static void Init()
{
Plugin.Logger.LogDebug((object)"Initializing Body Hooks");
Md.Body.Awake.Postfix(Postfix_Awake);
try
{
EmbedCargo.Postfix(Postfix_EmbedCargo);
}
catch (MissingMethodException exception)
{
Plugin.LogHookError("hook EmbedCargo", "Body.EmbedCargo", exception, "Are you playing the demo?", (LogLevel)4);
}
try
{
RemoveCargo.Postfix(Postfix_RemoveCargo);
}
catch (MissingMethodException exception2)
{
Plugin.LogHookError("hook RemoveCargo", "Body.RemoveCargo", exception2, "Are you playing the demo?", (LogLevel)4);
}
}
internal static void Postfix_Awake(Body self)
{
((Component)self).gameObject.AddComponent<ClassThatKillsYouAndKillsYouInstantly>();
}
internal static void Postfix_EmbedCargo(Body self)
{
((Component)self).GetComponent<ClassThatKillsYouAndKillsYouInstantly>().OnEmbedCargo();
}
internal static void Postfix_RemoveCargo(Body self)
{
((Component)self).GetComponent<ClassThatKillsYouAndKillsYouInstantly>().OnRemoveCargo();
}
}
public class ClassThatKillsYouAndKillsYouInstantly : MonoBehaviour
{
public Body body;
public HashSet<Limb> amputatedLimbs = new HashSet<Limb>();
public float? lastRadiationSickness;
public float worldGenerationTimer;
public float embedCargoImmunity;
public float removeCargoImmunity;
public float escapeRagdollImmunity;
public bool inSandbox;
public void Awake()
{
body = ((Component)this).GetComponent<Body>();
}
public void Update()
{
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_001d: Invalid comparison between Unknown and I4
if (!Plugin.Instance.configEnabled.Value || ((int)WorldGeneration.world.biomeOverride == 1 && !inSandbox) || (Plugin.Instance.configDisableDuringEnding.Value && (Object)(object)EndLabScript.instance != (Object)null) || body.brainHealth <= 0f)
{
return;
}
if (body.brainHealth <= -100f && body.alive)
{
ConsoleScript.instance.Alert(" this is how you look ");
ConsoleScript.instance.Alert(" decompiling this shit ");
ConsoleScript.instance.Alert(" ");
ConsoleScript.instance.Alert(" ⡀ ");
ConsoleScript.instance.Alert(" ⢀⡴⠛⣧ ");
ConsoleScript.instance.Alert(" ⣰⠛⢠⡀⠸⣆⡀ ");
ConsoleScript.instance.Alert(" ⡼⡁⢰⣋⡇ ⡿⢳⡀ ⣠⠤⣀⣀ ");
ConsoleScript.instance.Alert(" ⡼⠁⣏⠉⠛⠳⢤⣟ ⢧ ⣀⣤⣠⣤⣄⣀ ⢷ ⠈⠙⠢⣄ ");
ConsoleScript.instance.Alert(" ⢰⡔⠃⣀⠘⢆⣀ ⠉ ⠘⠚⠉ ⢀⡀ ⢸⠇⢀⡀⢸⡀ ⠈⢧ ");
ConsoleScript.instance.Alert(" ⢹⠙⡾⠟⣷⠂⠉ ⠻⢚⣹⠃ ⢠⡏ ⡏⠹⠃ ⢸⡆ ");
ConsoleScript.instance.Alert("⢀⣀ ⢸⣼⠇⣰ ⠠⠶⠳⣦ ⠘⠲⠃ ⢠⠟⠁ ⡏ ⢸⡇ ");
ConsoleScript.instance.Alert("⠈⣿⣷⣄ ⢠⠏⡟⠷⠟⠁ ⣴⡆ ⢸⡇ ⢠⣄⡴⠏ ⡀⢰⠇ ⢠⡾⠚⠋⠉⠉⢳⡀ ");
ConsoleScript.instance.Alert(" ⢹⡌⠙⢷⣄ ⠈⠉⢧⡐⠶⠄ ⠻⣃⡀⠸⡷ ⠹⣆ ⢀⡿⡏ ⣠⡾ ⢀⡴⠟⠁ ");
ConsoleScript.instance.Alert(" ⢷ ⠻⣷⣄ ⢀⣀⡀ ⠙⠦⣤⣀⡀ ⠘⠿⠇ ⣤⠴⣶⣞⣁⣠⣾⡀ ⣤⣠⣴⠶⢾⣁⣧ ⠈⢧⡤⠖⠚⠦⣄⡀");
ConsoleScript.instance.Alert(" ⠘⡇ ⠈⠻⣷⡀ ⣠⢾⡉⢉⡍⠙⠳⣶⢟⣯⣭⠿⠷⣤⡀⣠⠏ ⠈⠉⠉⠛⠚⠻ ⠈⣇ ⠙⣦");
ConsoleScript.instance.Alert(" ⢹⡀ ⢿⣧ ⢧⣸⡀⠘⣇⣴ ⢘⠛⠛ ⣰⠊⠻⠁ ⢹⣤⣄⣄⡓⣶⠏ ");
ConsoleScript.instance.Alert(" ⣧ ⠈⣿⣆⣠⣤⣭⡭⠿⣹⣿⡋⠉⠛⠓⠒⠴⠃ ⡄ ⠠⣇⠈⠙⠛⠁ ");
ConsoleScript.instance.Alert(" ⠈⠳⣄ ⠸⣿⠉ ⠈⢻⠞⠙⡾⠁⡀ ⢀⣿⣀⣀⣀⣀⣀⣀⣀⣀⣬⠷⠶⠤⢤⣤⣄⣀⣀⣤⣄⡀⣰⠤⢽⠆ ");
ConsoleScript.instance.Alert(" ⠈⠳⣄ ⢿⣧ ⠘⠷⠾⠷⣼⣅⣀⣀ ⠸⡅ ⠉⠉⠁ ⠙⠏ ");
ConsoleScript.instance.Alert(" ⠘⢧⡈⡿⣄⣀⣀⣀⣀⣀⣈⣳⣍⠉⠉⠛⢿⡛⢦⡼⠛⠛ ");
ConsoleScript.instance.Alert(" ⠙⠻⠻⠶⠿⠿⠷⠷⠿⠿⠾⠶⠶⠶⠶⠿⠟⠁ ");
}
if (WorldGeneration.world.generatingWorld || WorldGeneration.world.instantiatingWorld)
{
worldGenerationTimer = 0f;
float valueOrDefault = lastRadiationSickness.GetValueOrDefault();
if (!lastRadiationSickness.HasValue)
{
valueOrDefault = body.radiationSickness;
lastRadiationSickness = valueOrDefault;
}
float? num = lastRadiationSickness;
if (num.HasValue)
{
if (body.radiationSickness > lastRadiationSickness)
{
body.radiationSickness = lastRadiationSickness.Value;
}
else
{
lastRadiationSickness = body.radiationSickness;
}
}
else
{
body.radiationSickness = 0f;
}
}
else if (worldGenerationTimer < 5f)
{
worldGenerationTimer += Time.deltaTime;
float? num = lastRadiationSickness;
if (num.HasValue)
{
if (body.radiationSickness > lastRadiationSickness)
{
body.radiationSickness = lastRadiationSickness.Value;
}
else
{
lastRadiationSickness = body.radiationSickness;
}
}
else
{
body.radiationSickness = 0f;
}
}
else
{
lastRadiationSickness = null;
}
if (removeCargoImmunity > 20f)
{
removeCargoImmunity -= Time.deltaTime;
return;
}
if ((Plugin.Instance.configAllowLastStand.Value && body.lastStandTime > -1f) || embedCargoImmunity > 0f || removeCargoImmunity > 0f || escapeRagdollImmunity > 0f)
{
if (embedCargoImmunity > 0f)
{
embedCargoImmunity -= Time.deltaTime;
}
if (removeCargoImmunity > 0f)
{
removeCargoImmunity -= Time.deltaTime;
}
if (escapeRagdollImmunity > 0f)
{
escapeRagdollImmunity -= Time.deltaTime;
}
body.brainHealth = Mathf.MoveTowards(body.brainHealth, 100f, Time.deltaTime * 2.5f);
body.internalBleeding = Mathf.MoveTowards(body.internalBleeding, 0f, Time.deltaTime * 5f);
CollectionExtensions.Do<Limb>((IEnumerable<Limb>)body.limbs, (Action<Limb>)delegate(Limb limb)
{
limb.bleedAmount = Mathf.MoveTowards(limb.bleedAmount, 0f, Time.deltaTime * 5f);
limb.skinHealth = Mathf.MoveTowards(limb.skinHealth, 100f, Time.deltaTime * 5f);
limb.muscleHealth = Mathf.MoveTowards(limb.muscleHealth, 100f, Time.deltaTime * 5f);
limb.dislocationTimer = Mathf.MoveTowards(limb.dislocationTimer, 0f, Time.deltaTime * 5f);
limb.boneHealTimer = Mathf.MoveTowards(limb.boneHealTimer, 0f, Time.deltaTime * 5f);
limb.infected = false;
if (limb.dismembered)
{
amputatedLimbs.Add(limb);
}
});
body.radiationSickness = Mathf.MoveTowards(body.radiationSickness, 0f, Time.deltaTime * 5f);
return;
}
if (body.brainHealth < 95f || (((Object)(object)body.mindWipe == (Object)null || ((Object)(object)body.mindWipe != (Object)null && !body.mindWipe.active)) && body.brainHealth < 99f))
{
ConsoleScript.instance.LogToConsole($"<color=orange>Death due to brain damage ({body.brainHealth})</color>");
KillInstantly(body);
}
if (body.internalBleeding > 1f)
{
ConsoleScript.instance.LogToConsole($"<color=orange>Death due to internal bleeding ({body.internalBleeding * 0.00855f})</color>");
KillInstantly(body);
}
if (body.limbs.Any((Limb limb) => !amputatedLimbs.Contains(limb) && limb.bleedAmount > 1f))
{
Limb val = (from limb in body.limbs
where !amputatedLimbs.Contains(limb) && limb.bleedAmount > 1f
orderby limb.bleedAmount descending
select limb).First();
ConsoleScript.instance.LogToConsole($"<color=orange>Death due to bleeding ({val.bleedAmount * 0.015f} on {val.fullName})</color>");
KillInstantly(body);
}
if (body.limbs.Any((Limb limb) => !amputatedLimbs.Contains(limb) && limb.skinHealth < 99f))
{
Limb val2 = (from limb in body.limbs
where !amputatedLimbs.Contains(limb) && limb.skinHealth < 99f
orderby limb.skinHealth
select limb).First();
ConsoleScript.instance.LogToConsole($"<color=orange>Death due to skin damage ({val2.skinHealth} on {val2.fullName})</color>");
KillInstantly(body);
}
if (body.limbs.Any((Limb limb) => !amputatedLimbs.Contains(limb) && (limb.muscleHealth < 49f || (limb.muscleHealth < 99f && (!limb.isHead || !body.disfigured)))))
{
Limb val3 = (from limb in body.limbs
where !amputatedLimbs.Contains(limb) && (limb.muscleHealth < 49f || (limb.muscleHealth < 99f && (!limb.isHead || !body.disfigured)))
orderby limb.muscleHealth
select limb).First();
ConsoleScript.instance.LogToConsole($"<color=orange>Death due to muscle damage ({val3.muscleHealth} on {val3.fullName})</color>");
KillInstantly(body);
}
}
internal void KillInstantly(Body self)
{
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_001d: Invalid comparison between Unknown and I4
if (!Plugin.Instance.configEnabled.Value || ((int)WorldGeneration.world.biomeOverride == 1 && !inSandbox) || (Plugin.Instance.configDisableDuringEnding.Value && (Object)(object)EndLabScript.instance != (Object)null) || (Plugin.Instance.configAllowLastStand.Value && self.lastStandTime > -1f) || embedCargoImmunity > 0f || removeCargoImmunity > 0f || escapeRagdollImmunity > 0f || self.brainHealth <= 0f)
{
return;
}
if (Plugin.Instance.configAllowLastStand.Value && !self.triedRollingLastStand)
{
self.TryLastStand();
if (self.lastStandTime > 0f)
{
self.lastStandTime = 59f;
return;
}
}
if ((Object)(object)EndLabScript.instance != (Object)null)
{
self.heartRate = 0f;
self.bloodPressure = 0f;
}
else
{
self.brainHealth = 0f;
}
if (Plugin.Instance.configSetConsciousness.Value)
{
self.consciousness = 0f;
}
}
public void OnEmbedCargo()
{
embedCargoImmunity = 30f;
}
public void OnRemoveCargo()
{
removeCargoImmunity = 120f;
}
public void OnRemoveCargoHeal()
{
if (removeCargoImmunity > 5f)
{
removeCargoImmunity = 5f;
}
}
public void OnEscapeRagdoll()
{
escapeRagdollImmunity = 60f;
}
public void OnEnterSandbox()
{
inSandbox = true;
}
}
[MonoDetourTargets(typeof(CargoMinigame))]
public class CargoMinigameHooks
{
[MonoDetourHookInitialize]
internal static void Init()
{
Plugin.Logger.LogDebug((object)"Initializing CargoMinigame Hooks");
Md.CargoMinigame.Update.Postfix(Postfix_Update);
}
internal static void Postfix_Update(CargoMinigame self, ref List<RaycastResult> uiCasts)
{
if (self.stage == 2 && self.clampsDone >= 2)
{
((Component)self.limb.body).GetComponent<ClassThatKillsYouAndKillsYouInstantly>().OnRemoveCargoHeal();
}
}
}
[MonoDetourTargets(typeof(EndLabScript))]
public class EndLabScriptHooks
{
[MonoDetourHookInitialize]
internal static void Init()
{
Plugin.Logger.LogDebug((object)"Initializing EndLabScript Hooks");
EscapeCoroutine.PrefixMoveNext(Prefix_EscapeCoroutine_MoveNext);
}
internal static void Prefix_EscapeCoroutine_MoveNext(SpeakableEnumerator<object, EndLabScript> self)
{
if (self.State == 10)
{
((Component)self.This.body).GetComponent<ClassThatKillsYouAndKillsYouInstantly>().OnEscapeRagdoll();
}
}
}
[MonoDetourTargets(typeof(GlobalDark))]
public class GlobalDarkHooks
{
[MonoDetourHookInitialize]
internal static void Init()
{
Plugin.Logger.LogDebug((object)"Initializing GlobalDark Hooks");
Md.GlobalDark.Awake.Postfix(Postfix_Awake);
}
internal static void Postfix_Awake(GlobalDark inst)
{
//IL_008d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
//IL_00b2: Unknown result type (might be due to invalid IL or missing references)
//IL_0144: Unknown result type (might be due to invalid IL or missing references)
//IL_0153: Unknown result type (might be due to invalid IL or missing references)
//IL_0158: Unknown result type (might be due to invalid IL or missing references)
if (Plugin.ModListCompatibility.CompatibleVersion)
{
return;
}
GameObject val = Resources.FindObjectsOfTypeAll<GameObject>().First((GameObject obj) => ((Object)obj).name == "betabuild");
GameObject val2;
try
{
val2 = Resources.FindObjectsOfTypeAll<GameObject>().First((GameObject obj) => ((Object)obj).name == "moddedbuild");
}
catch (InvalidOperationException)
{
val2 = Object.Instantiate<GameObject>(val, ((Component)inst).transform);
((Object)val2).name = "moddedbuild";
((TMP_Text)val2.GetComponent<TextMeshProUGUI>()).rectTransform.sizeDelta = new Vector2(((TMP_Text)val2.GetComponent<TextMeshProUGUI>()).rectTransform.sizeDelta.x * 2f, ((TMP_Text)val2.GetComponent<TextMeshProUGUI>()).rectTransform.sizeDelta.y);
}
val2.SetActive(true);
TextMeshProUGUI component = val2.GetComponent<TextMeshProUGUI>();
if (((TMP_Text)component).text == null || !((TMP_Text)component).text.Contains("modded") || !((TMP_Text)component).text.Contains(")"))
{
((TMP_Text)component).text = "This is a modded build (Make (blank) kill you)";
}
else
{
((TMP_Text)component).text = ((TMP_Text)component).text.Insert(((TMP_Text)component).text.LastIndexOf(")"), ", Make (blank) kill you");
}
if (val.activeInHierarchy)
{
((TMP_Text)component).rectTransform.anchoredPosition = ((TMP_Text)val.GetComponent<TextMeshProUGUI>()).rectTransform.anchoredPosition + new Vector2(0f, -21f);
}
}
}
[MonoDetourTargets(typeof(MoodleManager))]
public class MoodleManagerHooks
{
[CompilerGenerated]
private static class <>O
{
public static Manipulator <0>__ILHook_AddAllMoodles;
public static Func<MoodleManager, bool> <1>__IsLastStandCritical;
}
[MonoDetourHookInitialize]
internal static void Init()
{
//IL_001f: Unknown result type (might be due to invalid IL or missing references)
//IL_0024: Unknown result type (might be due to invalid IL or missing references)
//IL_002a: Expected O, but got Unknown
Plugin.Logger.LogDebug((object)"Initializing MoodleManager Hooks");
object obj = <>O.<0>__ILHook_AddAllMoodles;
if (obj == null)
{
Manipulator val = ILHook_AddAllMoodles;
<>O.<0>__ILHook_AddAllMoodles = val;
obj = (object)val;
}
AddAllMoodles.ILHook((Manipulator)obj);
}
internal static void ILHook_AddAllMoodles(ILManipulationInfo info)
{
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_0021: Expected O, but got Unknown
//IL_018f: Unknown result type (might be due to invalid IL or missing references)
Plugin.Logger.LogDebug((object)"Hooking MoodleManager.AddAllMoodles");
ILWeaver weaver = new ILWeaver(info);
try
{
weaver.MatchRelaxed(new Predicate<Instruction>[10]
{
(Instruction x) => ILPatternMatchingExt.MatchLdarg(x, 0),
(Instruction x) => ILPatternMatchingExt.MatchLdcI4(x, 8),
(Instruction x) => ILPatternMatchingExt.MatchLdstr(x, "lastleg"),
(Instruction x) => ILPatternMatchingExt.MatchLdstr(x, "laststand"),
(Instruction x) => ILPatternMatchingExt.MatchCall<Locale>(x, "GetMoodle"),
(Instruction x) => ILPatternMatchingExt.MatchLdstr(x, "laststanddsc"),
(Instruction x) => ILPatternMatchingExt.MatchCall<Locale>(x, "GetMoodle"),
(Instruction x) => ILPatternMatchingExt.MatchLdcI4(x, 0) && weaver.SetCurrentTo(x),
(Instruction x) => ILPatternMatchingExt.MatchLdcI4(x, 0),
(Instruction x) => ILPatternMatchingExt.MatchCall<MoodleManager>(x, "AddMoodle")
}).ThrowIfFailure();
weaver.ReplaceCurrent((IEnumerable<Instruction>)new <>z__ReadOnlyArray<Instruction>((Instruction[])(object)new Instruction[2]
{
weaver.Create(OpCodes.Ldarg_0),
weaver.CreateCall((Delegate)new Func<MoodleManager, bool>(IsLastStandCritical))
}));
}
catch (Exception exception)
{
Plugin.LogHookError("find last stand moodle", "MoodleManager.AddAllMoodles", exception, null, (LogLevel)2);
}
}
internal static bool IsLastStandCritical(MoodleManager self)
{
if (!Plugin.Instance.configEnabled.Value)
{
return false;
}
if (!Plugin.Instance.configAllowLastStand.Value)
{
return false;
}
return self.body.lastStandTime <= 15f;
}
}
[MonoDetourTargets(typeof(SandboxCourse))]
public class SandboxCourseHooks
{
[MonoDetourHookInitialize]
internal static void Init()
{
Plugin.Logger.LogDebug((object)"Initializing SandboxCourse Hooks");
Sequence.PrefixMoveNext(Prefix_Sequence_MoveNext);
}
internal static void Prefix_Sequence_MoveNext(SpeakableEnumerator<object> self)
{
if (self.State == 0)
{
((Component)PlayerCamera.main.body).GetComponent<ClassThatKillsYouAndKillsYouInstantly>().OnEnterSandbox();
}
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}
[CompilerGenerated]
internal sealed class <>z__ReadOnlyArray<T> : IEnumerable, ICollection, IList, IEnumerable<T>, IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>, IList<T>
{
int ICollection.Count => _items.Length;
bool ICollection.IsSynchronized => false;
object ICollection.SyncRoot => this;
object IList.this[int index]
{
get
{
return _items[index];
}
set
{
throw new NotSupportedException();
}
}
bool IList.IsFixedSize => true;
bool IList.IsReadOnly => true;
int IReadOnlyCollection<T>.Count => _items.Length;
T IReadOnlyList<T>.this[int index] => _items[index];
int ICollection<T>.Count => _items.Length;
bool ICollection<T>.IsReadOnly => true;
T IList<T>.this[int index]
{
get
{
return _items[index];
}
set
{
throw new NotSupportedException();
}
}
public <>z__ReadOnlyArray(T[] items)
{
_items = items;
}
IEnumerator IEnumerable.GetEnumerator()
{
return ((IEnumerable)_items).GetEnumerator();
}
void ICollection.CopyTo(Array array, int index)
{
((ICollection)_items).CopyTo(array, index);
}
int IList.Add(object value)
{
throw new NotSupportedException();
}
void IList.Clear()
{
throw new NotSupportedException();
}
bool IList.Contains(object value)
{
return ((IList)_items).Contains(value);
}
int IList.IndexOf(object value)
{
return ((IList)_items).IndexOf(value);
}
void IList.Insert(int index, object value)
{
throw new NotSupportedException();
}
void IList.Remove(object value)
{
throw new NotSupportedException();
}
void IList.RemoveAt(int index)
{
throw new NotSupportedException();
}
IEnumerator<T> IEnumerable<T>.GetEnumerator()
{
return ((IEnumerable<T>)_items).GetEnumerator();
}
void ICollection<T>.Add(T item)
{
throw new NotSupportedException();
}
void ICollection<T>.Clear()
{
throw new NotSupportedException();
}
bool ICollection<T>.Contains(T item)
{
return ((ICollection<T>)_items).Contains(item);
}
void ICollection<T>.CopyTo(T[] array, int arrayIndex)
{
((ICollection<T>)_items).CopyTo(array, arrayIndex);
}
bool ICollection<T>.Remove(T item)
{
throw new NotSupportedException();
}
int IList<T>.IndexOf(T item)
{
return ((IList<T>)_items).IndexOf(item);
}
void IList<T>.Insert(int index, T item)
{
throw new NotSupportedException();
}
void IList<T>.RemoveAt(int index)
{
throw new NotSupportedException();
}
}