2018-12-09 06:51:33 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2018-12-09 20:27:31 +00:00
|
|
|
|
namespace RecrownedAthenaeum.Tools.CommandProcessor.Commands
|
2018-12-09 06:51:33 +00:00
|
|
|
|
{
|
|
|
|
|
internal class StopCommand : EngineCommand
|
|
|
|
|
{
|
|
|
|
|
CommandEngine commandEngine;
|
|
|
|
|
|
|
|
|
|
public StopCommand(CommandEngine commandEngine) : base("quit", "stop", "q", "exit")
|
|
|
|
|
{
|
|
|
|
|
this.commandEngine = commandEngine;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Help(string argument = null)
|
|
|
|
|
{
|
|
|
|
|
return "Exits the tool.";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Run(string[] arguments = null)
|
|
|
|
|
{
|
|
|
|
|
commandEngine.running = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|