18 lines
536 B
C#
18 lines
536 B
C#
using System;
|
|
using TextRPG.Commands;
|
|
|
|
namespace TextRPG.Commands
|
|
{
|
|
public class ClearCommand : Command
|
|
{
|
|
public override string Name => "clear";
|
|
public override string Description => "Clears all text from the console output";
|
|
public override string Usage => "clear";
|
|
|
|
public override void Execute(string[] args, Action<string> outputCallback)
|
|
{
|
|
// Send a special marker that the console UI will recognize
|
|
outputCallback("CLEAR_CONSOLE");
|
|
}
|
|
}
|
|
} |