Add ClearConsole command
This commit is contained in:
parent
dce3045989
commit
b3a72516fb
1 changed files with 24 additions and 0 deletions
24
extracommands/ClearConsoleCommandEngine.cs
Normal file
24
extracommands/ClearConsoleCommandEngine.cs
Normal 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.";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue