Prune most yml ambientsound entries (#8573)
This commit is contained in:
17
Content.Client/Audio/AmbientOverlayCommand.cs
Normal file
17
Content.Client/Audio/AmbientOverlayCommand.cs
Normal 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}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user