Adds the ability to not play admin sounds (#8242)
Co-authored-by: ike709 <ike709@github.com> Co-authored-by: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
21
Content.Shared/Audio/SharedAdminSoundSystem.cs
Normal file
21
Content.Shared/Audio/SharedAdminSoundSystem.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Audio;
|
||||
|
||||
|
||||
public abstract class SharedAdminSoundSystem : EntitySystem
|
||||
{
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class AdminSoundEvent : EntityEventArgs
|
||||
{
|
||||
public string Filename;
|
||||
public AudioParams? AudioParams;
|
||||
public AdminSoundEvent(string filename, AudioParams? audioParams = null)
|
||||
{
|
||||
Filename = filename;
|
||||
AudioParams = audioParams;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user