mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-06-09 10:06:49 +02:00
5168b5f3d4
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
25 lines
829 B
C#
25 lines
829 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 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");
|
|
}
|
|
}
|
|
}
|