mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 10:37:05 +02:00
* Removed the Interfaces folder. * All objects inside the GameObjects subfolders are now in the GameObjects namespace. * Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces. * Simplified Robust.client.Graphics namespace. * Automated remove redundant using statements.
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
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
|
|
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...");
|
|
}
|
|
}
|
|
}
|
|
}
|