From b3a72516fb1256d949a2e9d8f80e0166d53236d9 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sat, 8 Feb 2020 23:04:50 +0100 Subject: [PATCH] Add ClearConsole command --- extracommands/ClearConsoleCommandEngine.cs | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 extracommands/ClearConsoleCommandEngine.cs diff --git a/extracommands/ClearConsoleCommandEngine.cs b/extracommands/ClearConsoleCommandEngine.cs new file mode 100644 index 0000000..9fe9f3c --- /dev/null +++ b/extracommands/ClearConsoleCommandEngine.cs @@ -0,0 +1,24 @@ +using GamecraftModdingAPI.Commands; +using Svelto.ECS; + +namespace ExtraCommands +{ + [CustomCommand("ClearConsole")] + public class ClearConsoleCommandEngine : ICustomCommandEngine + { + public void Ready() + { + CommandRegistrationHelper.Register("ClearConsole", uREPL.Window.ClearOutputCommand, + "Clears the console output."); + } + + public IEntitiesDB entitiesDB { get; set; } + public void Dispose() + { + CommandRegistrationHelper.Unregister("ClearConsole"); + } + + public string Name { get; } = "ClearConsole"; + public string Description { get; } = "Clears the console output."; + } +} \ No newline at end of file