18 lines
542 B
C#
18 lines
542 B
C#
using Content.Shared.Whitelist;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Sound.Components;
|
|
|
|
/// <summary>
|
|
/// Simple sound emitter that emits sound on AfterActivatableUIOpenEvent
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class EmitSoundOnUIOpenComponent : BaseEmitSoundComponent
|
|
{
|
|
/// <summary>
|
|
/// Blacklist for making the sound not play if certain entities open the UI
|
|
/// </summary>
|
|
[DataField]
|
|
public EntityWhitelist Blacklist = new();
|
|
}
|