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