27 lines
636 B
C#
27 lines
636 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace RecrownedAthenaeum.Tools.CommandProcessor.Commands
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|