25 lines
838 B
C#
25 lines
838 B
C#
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.Console;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
namespace Content.Client.Administration.UI.Tabs
|
|
{
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class RoundTab : Control
|
|
{
|
|
[Dependency] private readonly IClientConsoleHost _console = default!;
|
|
|
|
public RoundTab()
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
IoCManager.InjectDependencies(this);
|
|
|
|
StartRound.OnPressed += _ => _console.ExecuteCommand("startround");
|
|
EndRound.OnPressed += _ => _console.ExecuteCommand("endround");
|
|
RestartRound.OnPressed += _ => _console.ExecuteCommand("restartround");
|
|
RestartRoundNow.OnPressed += _ => _console.ExecuteCommand("restartroundnow");
|
|
}
|
|
}
|
|
}
|