Files
tbd-station-14/Content.Client/Audio/AmbientOverlayCommand.cs
2022-06-03 03:42:35 -07:00

18 lines
608 B
C#

using Robust.Shared.Console;
namespace Content.Client.Audio;
public sealed class AmbientOverlayCommand : IConsoleCommand
{
public string Command => "showambient";
public string Description => "Shows all AmbientSoundComponents in the viewport";
public string Help => $"{Command}";
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
var system = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<AmbientSoundSystem>();
system.OverlayEnabled ^= true;
shell.WriteLine($"Ambient sound overlay set to {system.OverlayEnabled}");
}
}