1
0

EmitSoundOnInteractUsingComponent.cs 509 B

123456789101112131415
  1. using Content.Shared.Whitelist;
  2. using Robust.Shared.Prototypes;
  3. using Robust.Shared.GameStates;
  4. namespace Content.Shared.Sound.Components;
  5. /// <summary>
  6. /// Whenever this item is used upon by an entity, with a tag or component within a whitelist, in the hand of a user, play a sound
  7. /// </summary>
  8. [RegisterComponent, NetworkedComponent]
  9. public sealed partial class EmitSoundOnInteractUsingComponent : BaseEmitSoundComponent
  10. {
  11. [DataField(required: true)]
  12. public EntityWhitelist Whitelist = new();
  13. }