Add ClearConsole command

This commit is contained in:
Norbi Peti 2020-02-08 23:04:50 +01:00
parent dce3045989
commit b3a72516fb
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56

View file

@ -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.";
}
}