recrownedathenaeum/RecrownedAthenaeum.Tools/CommandProcessor/Commands/StopCommand.cs

23 lines
555 B
C#
Raw Normal View History

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