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 TerminalUtils v1.0.1
TerminalUtils.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using LethalOS.API; using LethalOS.API.Terminal; using Microsoft.CodeAnalysis; using TerminalUtils.Modules.Enemy; using TerminalUtils.Modules.Moon; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("TerminalUtils")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+b1fe766ae680218f4abbc9edd1fea68b8204ed47")] [assembly: AssemblyProduct("TerminalUtils")] [assembly: AssemblyTitle("TerminalUtils")] [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; } } } namespace TerminalUtils { [BepInPlugin("verity.terminalutils", "Terminal Utils", "1.0.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] internal class Plugin : BaseUnityPlugin { private static ManualLogSource? LogSource; private void Awake() { //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_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Expected O, but got Unknown LogSource = ((BaseUnityPlugin)this).Logger; LogSource.LogInfo((object)"Terminal Utils Loaded!"); GameObject val = new GameObject("TerminalUtils"); val.AddComponent<PluginLoader>(); ((Object)val).hideFlags = (HideFlags)61; Object.DontDestroyOnLoad((Object)val); } } public class PluginLoader : MonoBehaviour { private void Start() { //IL_0014: 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 //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Expected O, but got Unknown //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) Menu val = new Menu("TerminalUtils", "Some terminal utilities.", "terminalutils", "Verity"); Category val2 = new Category("Moon", "Utilities for the moons.", "Moon"); val2.AddModule((ModuleBase)(object)new NoWeather()); Category val3 = new Category("Enemy", "Utilities for the enemies.", "Enemy"); val3.AddModule((ModuleBase)(object)new EnemyScan()); val.AddCategory(val2); val.AddCategory(val3); val.Finished(); } } } namespace TerminalUtils.Modules.Moon { public class NoWeather : ModuleBase { public NoWeather() : base("NoWeather", "Disables all weather for moons, do this before landing.", "noweather", true, false) { } public override void OnUpdate() { //IL_0019: Unknown result type (might be due to invalid IL or missing references) Terminal val = Object.FindObjectOfType<Terminal>(); if (val != null) { SelectableLevel[] moonsCatalogueList = val.moonsCatalogueList; for (int i = 0; i < moonsCatalogueList.Length; i++) { moonsCatalogueList[i].currentWeather = (LevelWeatherType)(-1); } } } } } namespace TerminalUtils.Modules.Enemy { public class EnemyScan : ModuleBase { public EnemyScan() : base("EnemyScan", "Scan for alive enemies.", "enemyscan", false, true) { } protected override void OnEnabled() { EnemyAI[] array = Object.FindObjectsOfType<EnemyAI>(); int num = array.Length; int num2 = array.Count((EnemyAI ai) => ai.enemyType.isOutsideEnemy); ((ModuleBase)this).ChangeScreenText($"There are currently {num} enemies alive! {num2} of which are outside!", true); } } }