mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-06 17:58:05 +02:00
29 lines
738 B
C#
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");
|
|
}
|
|
}
|
|
}
|