mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
// This file is for commands that do something to the console itself.
|
|
// Not some generic console command type.
|
|
// Couldn't think of a better name sorry.
|
|
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Robust.Client.Console.Commands
|
|
{
|
|
sealed class ClearCommand : IConsoleCommand
|
|
{
|
|
public string Command => "cls";
|
|
public string Help => "Clears the debug console of all messages.";
|
|
public string Description => "Clears the console.";
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
shell.Clear();
|
|
}
|
|
}
|
|
|
|
sealed class FillCommand : IConsoleCommand
|
|
{
|
|
public string Command => "fill";
|
|
public string Help => "Fills the console with some nonsense for debugging.";
|
|
public string Description => "Fill up the console for debugging.";
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
for (int x = 0; x < 50; x++)
|
|
{
|
|
shell.WriteLine("filling...");
|
|
}
|
|
}
|
|
}
|
|
}
|