Harrison a013c476e7 Began working on a graphical playground for testing.
Improved SDL exception class.

Engine code changes.

General progress.
2020-05-27 00:20:41 -05:00

35 lines
853 B
C#

using SlatedGameToolkit.Tools.System;
using SlatedGameToolkit.Tools.System.Interaction;
namespace SlatedGameToolkit.Tools.Commands
{
public class StopCommand : IInvocable
{
private readonly string[] invokers = new string[] {"stop", "exit", "q", "quit"};
public bool Execute(IInteractable interactable, string[] args)
{
if (args.Length > 1) return false;
Program.Stop();
return true;
}
public string getDescription()
{
return "Exits the tool.";
}
public string getUsage(string arg)
{
return "This command exits the tool and has no additional arguments.";
}
public string[] GetInvokers()
{
return invokers;
}
public void Dispose()
{
}
}
}