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 AddHelp v0.0.2
BepInEx/plugins/AddHelp.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using Microsoft.CodeAnalysis; using TerminalApi; using TerminalApi.Classes; using TerminalApi.Events; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETFramework,Version=v4.6", FrameworkDisplayName = "")] [assembly: AssemblyCompany("AddHelp")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("A terminal command that displays help pages")] [assembly: AssemblyFileVersion("0.0.2.0")] [assembly: AssemblyInformationalVersion("0.0.2")] [assembly: AssemblyProduct("AddHelp")] [assembly: AssemblyTitle("AddHelp")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.0.2.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.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace TimeTerminalCommand { public static class MyPluginInfo { public const string PLUGIN_GUID = "AddHelp"; public const string PLUGIN_NAME = "AddHelp"; public const string PLUGIN_VERSION = "0.0.2"; } } namespace AddHelp { [BepInPlugin("mat-mans.addhelp", "AddHelp", "0.0.2")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { private void Awake() { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Expected O, but got Unknown //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Expected O, but got Unknown //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Expected O, but got Unknown //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Expected O, but got Unknown //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Expected O, but got Unknown //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown //IL_0085: Unknown result type (might be due to invalid IL or missing references) //IL_008f: Expected O, but got Unknown //IL_0097: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: Expected O, but got Unknown //IL_00a9: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Expected O, but got Unknown //IL_00b9: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_0103: Expected O, but got Unknown //IL_011b: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Unknown result type (might be due to invalid IL or missing references) //IL_0152: Unknown result type (might be due to invalid IL or missing references) //IL_0165: Expected O, but got Unknown //IL_016b: Unknown result type (might be due to invalid IL or missing references) //IL_0170: Unknown result type (might be due to invalid IL or missing references) //IL_0196: Unknown result type (might be due to invalid IL or missing references) //IL_01a2: Unknown result type (might be due to invalid IL or missing references) //IL_01b5: Expected O, but got Unknown //IL_01bb: Unknown result type (might be due to invalid IL or missing references) //IL_01c0: Unknown result type (might be due to invalid IL or missing references) //IL_01e6: Unknown result type (might be due to invalid IL or missing references) //IL_01f2: Unknown result type (might be due to invalid IL or missing references) //IL_0205: Expected O, but got Unknown //IL_020b: Unknown result type (might be due to invalid IL or missing references) //IL_0210: Unknown result type (might be due to invalid IL or missing references) //IL_0236: Unknown result type (might be due to invalid IL or missing references) //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_0255: Expected O, but got Unknown //IL_025b: Unknown result type (might be due to invalid IL or missing references) //IL_0260: Unknown result type (might be due to invalid IL or missing references) //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_0292: Unknown result type (might be due to invalid IL or missing references) //IL_02a5: Expected O, but got Unknown //IL_02ab: Unknown result type (might be due to invalid IL or missing references) //IL_02b0: Unknown result type (might be due to invalid IL or missing references) //IL_02d6: Unknown result type (might be due to invalid IL or missing references) //IL_02e2: Unknown result type (might be due to invalid IL or missing references) //IL_02f5: Expected O, but got Unknown ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin AddHelp v0.0.2 was loaded."); Events.TerminalAwake += new TerminalEventHandler(TerminalIsAwake); Events.TerminalWaking += new TerminalEventHandler(TerminalIsWaking); Events.TerminalStarting += new TerminalEventHandler(TerminalIsStarting); Events.TerminalStarted += new TerminalEventHandler(TerminalIsStarted); Events.TerminalParsedSentence += new TerminalParseSentenceEventHandler(TextSubmitted); Events.TerminalBeginUsing += new TerminalEventHandler(OnBeginUsing); Events.TerminalBeganUsing += new TerminalEventHandler(BeganUsing); Events.TerminalExited += new TerminalEventHandler(OnTerminalExit); Events.TerminalTextChanged += new TerminalTextChangedEventHandler(OnTerminalTextChanged); TerminalApi.AddCommand("addhelp", new CommandInfo { DisplayTextSupplier = () => "Additional Help. (Use \"h <keyword>\")\n\nPossible keywords; \npreview\nsort\nfilter\n\n", Category = "Other", Description = "Change displayed preview in moons catalog" }, (string)null, true); TerminalApi.AddCommand("adh", "Additional Help. (Use \"h <keyword>\")\n\nPossible keywords; \npreview\nsort\nfilter\n\n", (string)null, true); TerminalApi.AddCommand("h preview", new CommandInfo { DisplayTextSupplier = () => "In the moons catalog, change what is showed as preview. (Use \"preview <keyword>\")\n\nPossible keywords; \nprice\nweather\ndifficulty\nhistory\nall\nnone\nvanilla\n\n", Category = "none", Description = "Change displayed preview in moons catalog" }, (string)null, true); TerminalApi.AddCommand("help preview", new CommandInfo { DisplayTextSupplier = () => "In the moons catalog, change what is showed as preview. (Use \"preview <keyword>\")\n\nPossible keywords; \nprice\nweather\ndifficulty\nhistory\nall\nnone\nvanilla\n\n", Category = "none", Description = "Change displayed preview in moons catalog" }, (string)null, true); TerminalApi.AddCommand("h sort", new CommandInfo { DisplayTextSupplier = () => "Sort the moons catalog. (Use \"sort <keyword>\")\n\nPossible keywords; \nprice\ndifficulty\ntag\nquota\nrun\nnone\n\n", Category = "none", Description = "Sort the moons catalog." }, (string)null, true); TerminalApi.AddCommand("help sort", new CommandInfo { DisplayTextSupplier = () => "Sort the moons catalog. (Use \"sort <keyword>\")\n\nPossible keywords; \nprice\ndifficulty\ntag\nquota\nrun\nnone\n\n", Category = "none", Description = "Sort the moons catalog." }, (string)null, true); TerminalApi.AddCommand("h filter", new CommandInfo { DisplayTextSupplier = () => "Filter the moons catalog. (Use \"filter <keyword>\")\n\nPossible keywords; \nprice\nweather\ntag\nlast travelled\nnone\n\n", Category = "none", Description = "Filter the moons catalog." }, (string)null, true); TerminalApi.AddCommand("help filter", new CommandInfo { DisplayTextSupplier = () => "Filter the moons catalog. (Use \"filter <keyword>\")\n\nPossible keywords; \nprice\nweather\ntag\nlast travelled\nnone\n\n", Category = "none", Description = "Filter the moons catalog." }, (string)null, true); } private void OnTerminalTextChanged(object sender, TerminalTextChangedEventArgs e) { } private void OnTerminalExit(object sender, TerminalEventArgs e) { } private void TerminalIsAwake(object sender, TerminalEventArgs e) { } private void TerminalIsWaking(object sender, TerminalEventArgs e) { } private void TerminalIsStarting(object sender, TerminalEventArgs e) { } private void TerminalIsStarted(object sender, TerminalEventArgs e) { } private void TextSubmitted(object sender, TerminalParseSentenceEventArgs e) { } private void OnBeginUsing(object sender, TerminalEventArgs e) { } private void BeganUsing(object sender, TerminalEventArgs e) { } } }