Please disclose if your mod was created primarily 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 MorvDonalds v1.0.1
Morvdonald.dll
Decompiled 4 months agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using Microsoft.CodeAnalysis; using UnityEngine; using UnityEngine.Events; [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("Morvdonald")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Morvdonald")] [assembly: AssemblyTitle("Morvdonald")] [assembly: AssemblyVersion("1.0.0.0")] 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; } } } namespace Morvdonald { public class MrovEvent : MonoBehaviour { public UnityEvent tweak = new UnityEvent(); public void Tweak() { MrovEvent[] array = Object.FindObjectsOfType<MrovEvent>(); foreach (MrovEvent mrovEvent in array) { mrovEvent.tweak.Invoke(); } } } [BepInPlugin("JacobG5.Mrov", "Mrov", "1.0.0")] public class Plugin : BaseUnityPlugin { private const string modGUID = "JacobG5.Mrov"; private const string modName = "Mrov"; private const string modVersion = "1.0.0"; private void Awake() { } } }
DilapidatedManor.dll
Decompiled 4 months agousing System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using Microsoft.CodeAnalysis; using Unity.Netcode; using UnityEngine; using UnityEngine.Events; [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("DilapidatedManor")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("DilapidatedManor")] [assembly: AssemblyTitle("DilapidatedManor")] [assembly: AssemblyVersion("1.0.0.0")] 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; } } } namespace DilapidatedManor.Features { internal class AnimationManager : MonoBehaviour { public Animator animator; public string animationString; public void Changebool(bool b) { animator.SetBool(animationString, b); } } internal class DisablePower : NetworkBehaviour { [CompilerGenerated] private sealed class <KillPower>d__3 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public DisablePower <>4__this; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <KillPower>d__3(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <>1__state = -2; } private bool MoveNext() { //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Expected O, but got Unknown //IL_0089: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Expected O, but got Unknown //IL_00bc: Unknown result type (might be due to invalid IL or missing references) //IL_00c6: Expected O, but got Unknown //IL_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_0109: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>4__this.roundManager.FlickerLights(false, false); <>2__current = (object)new WaitForSeconds(3f); <>1__state = 1; return true; case 1: <>1__state = -1; <>4__this.roundManager.FlickerLights(false, false); <>2__current = (object)new WaitForSeconds(5f); <>1__state = 2; return true; case 2: <>1__state = -1; <>4__this.roundManager.FlickerLights(false, false); <>2__current = (object)new WaitForSeconds(2.5f); <>1__state = 3; return true; case 3: <>1__state = -1; <>4__this.roundManager.SwitchPower(false); <>4__this.roundManager.powerOffPermanently = true; <>2__current = (object)new WaitForSeconds(0.75f); <>1__state = 4; return true; case 4: <>1__state = -1; HUDManager.Instance.RadiationWarningHUD(); return false; } } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } private RoundManager roundManager; private void Start() { roundManager = Object.FindObjectOfType<RoundManager>(); } public void DisableFacilityPower() { ((MonoBehaviour)this).StartCoroutine(KillPower()); } [IteratorStateMachine(typeof(<KillPower>d__3))] private IEnumerator KillPower() { //yield-return decompiler failed: Unexpected instruction in Iterator.Dispose() return new <KillPower>d__3(0) { <>4__this = this }; } } internal class RadioReceiver : MonoBehaviour { public int ReceiverId; [SerializeField] private UnityEvent ReceiveEvent; public void MessageReceiveEvent() { ReceiveEvent.Invoke(); } } public class RadioSender : MonoBehaviour { [SerializeField] private int SenderId; private RadioReceiver receiver; public void FindSignal() { if (!(Object.FindObjectsOfType(typeof(RadioReceiver)) is RadioReceiver[] array)) { return; } RadioReceiver[] array2 = array; foreach (RadioReceiver radioReceiver in array2) { if (SenderId == radioReceiver.ReceiverId) { receiver = radioReceiver; } } } public void SendReceiverSignal() { receiver.MessageReceiveEvent(); } } internal class WeatherTweaksButton : NetworkBehaviour { [CompilerGenerated] private sealed class <KillPowerShort>d__3 : IEnumerator<object>, IEnumerator, IDisposable { private int <>1__state; private object <>2__current; public WeatherTweaksButton <>4__this; object IEnumerator<object>.Current { [DebuggerHidden] get { return <>2__current; } } object IEnumerator.Current { [DebuggerHidden] get { return <>2__current; } } [DebuggerHidden] public <KillPowerShort>d__3(int <>1__state) { this.<>1__state = <>1__state; } [DebuggerHidden] void IDisposable.Dispose() { <>1__state = -2; } private bool MoveNext() { //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown //IL_0087: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Expected O, but got Unknown switch (<>1__state) { default: return false; case 0: <>1__state = -1; <>4__this.roundManager.FlickerLights(false, false); <>2__current = (object)new WaitForSeconds(5.5f); <>1__state = 1; return true; case 1: <>1__state = -1; <>4__this.roundManager.SwitchPower(false); <>4__this.roundManager.powerOffPermanently = true; <>2__current = (object)new WaitForSeconds(0.75f); <>1__state = 2; return true; case 2: <>1__state = -1; HUDManager.Instance.RadiationWarningHUD(); return false; } } bool IEnumerator.MoveNext() { //ILSpy generated this explicit interface implementation from .override directive in MoveNext return this.MoveNext(); } [DebuggerHidden] void IEnumerator.Reset() { throw new NotSupportedException(); } } private RoundManager roundManager; private void Start() { roundManager = Object.FindObjectOfType<RoundManager>(); } public void PressWeatherButton() { ((MonoBehaviour)this).StartCoroutine(KillPowerShort()); } [IteratorStateMachine(typeof(<KillPowerShort>d__3))] private IEnumerator KillPowerShort() { //yield-return decompiler failed: Unexpected instruction in Iterator.Dispose() return new <KillPowerShort>d__3(0) { <>4__this = this }; } } }