Prune most yml ambientsound entries (#8573)

This commit is contained in:
metalgearsloth
2022-06-03 20:42:35 +10:00
committed by GitHub
parent 849490cd40
commit b29ed6e03a
5 changed files with 109 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
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}");
}
}