Browse Source

Add ClearConsole command

master
NorbiPeti 4 years ago
parent
commit
b3a72516fb
Signed by: NorbiPeti <szatmari.norbert.peter@gmail.com> GPG Key ID: DBA4C4549A927E56
1 changed files with 24 additions and 0 deletions
  1. +24
    -0
      extracommands/ClearConsoleCommandEngine.cs

+ 24
- 0
extracommands/ClearConsoleCommandEngine.cs 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.";
}
}

Loading…
Cancel
Save