2024-03-30 22:20:44 -04:00
|
|
|
using Content.Shared.Whitelist;
|
|
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Sound.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 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
|
|
|
|
|
/// </summary>
|
2025-07-22 12:25:28 +02:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
2024-03-30 22:20:44 -04:00
|
|
|
public sealed partial class EmitSoundOnInteractUsingComponent : BaseEmitSoundComponent
|
|
|
|
|
{
|
2025-03-30 15:41:11 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// The <see cref="EntityWhitelist"/> for the entities that can use this item.
|
|
|
|
|
/// </summary>
|
2024-03-30 22:20:44 -04:00
|
|
|
[DataField(required: true)]
|
|
|
|
|
public EntityWhitelist Whitelist = new();
|
|
|
|
|
}
|