6
StarHorizon_Public/Content.Shared/Item/ItemToggle/Components/ItemToggleActiveSoundComponent.cs
2026-01-24 12:49:55 +03:00

24 lines
765 B
C#

using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Item.ItemToggle.Components;
/// <summary>
/// Handles the active sound being played continuously with some items that are activated (ie e-sword hum).
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ItemToggleActiveSoundComponent : Component
{
/// <summary>
/// The continuous noise this item makes when it's activated (like an e-sword's hum).
/// </summary>
[DataField(required: true), AutoNetworkedField]
public SoundSpecifier? ActiveSound;
/// <summary>
/// Used when the item emits sound while active.
/// </summary>
[DataField]
public EntityUid? PlayingStream;
}