EmitSoundOnUIOpenComponent.cs 514 B

1234567891011121314151617
  1. using Content.Shared.Whitelist;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Sound.Components;
  4. /// <summary>
  5. /// Simple sound emitter that emits sound on AfterActivatableUIOpenEvent
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent]
  8. public sealed partial class EmitSoundOnUIOpenComponent : BaseEmitSoundComponent
  9. {
  10. /// <summary>
  11. /// Blacklist for making the sound not play if certain entities open the UI
  12. /// </summary>
  13. [DataField]
  14. public EntityWhitelist Blacklist = new();
  15. }