synthflesh nerf (#343)
* synthflesh nerf * sky-blue carpet * vaporSystem tweak * throwSystem tweaks * Revert "throwSystem tweaks" This reverts commit a8820ab703ba3008bddeafbe7933ae94e88db3c8. * Revert "vaporSystem tweak" This reverts commit da5a7ef1db42033ee115467295882323f9d58ce6. * prevent double collision rework * showmanifest command * client issue
This commit is contained in:
31
Content.Client/GameTicking/Commands/ShowManifestCommand.cs
Normal file
31
Content.Client/GameTicking/Commands/ShowManifestCommand.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Content.Client.GameTicking.Managers;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.GameTicking;
|
||||
using Robust.Shared.Console;
|
||||
using Robust.Shared.Network;
|
||||
|
||||
namespace Content.Client.GameTicking.Commands
|
||||
{
|
||||
[AnyCommand]
|
||||
public sealed class ShowManifestCommand : IConsoleCommand
|
||||
{
|
||||
[Dependency] private readonly IEntitySystemManager _entitySystem = default!;
|
||||
|
||||
public string Command => "showmanifest";
|
||||
public string Description => "Shows round end summary window";
|
||||
public string Help => "Usage: showmanifest";
|
||||
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
var ticker = _entitySystem.GetEntitySystem<ClientGameTicker>();
|
||||
var window = ticker._window;
|
||||
|
||||
if (!ticker.IsGameStarted && window != null)
|
||||
{
|
||||
window.OpenCentered();
|
||||
return;
|
||||
}
|
||||
shell.WriteLine("You can't open manifest right now");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user