Files
RobustToolbox/Robust.Client/Console/Commands/QuitCommand.cs
T

29 lines
738 B
C#

using System;
using Robust.Shared.Console;
using Robust.Shared.IoC;
namespace Robust.Client.Console.Commands
{
sealed class HardQuitCommand : LocalizedCommands
{
public override string Command => "hardquit";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
Environment.Exit(0);
}
}
sealed class QuitCommand : LocalizedCommands
{
[Dependency] private readonly IGameController _gameController = default!;
public override string Command => "quit";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
_gameController.Shutdown("quit command used");
}
}
}