Files
OldThink/Content.Shared/Sound/Components/BaseEmitSoundComponent.cs

18 lines
540 B
C#
Raw Normal View History

using Robust.Shared.Audio;
2023-01-04 12:56:35 -06:00
namespace Content.Shared.Sound.Components
{
/// <summary>
/// Base sound emitter which defines most of the data fields.
/// Accepts both single sounds and sound collections.
/// </summary>
public abstract partial class BaseEmitSoundComponent : Component
{
2022-07-29 14:13:12 +12:00
public static readonly AudioParams DefaultParams = AudioParams.Default.WithVolume(-2f);
[ViewVariables(VVAccess.ReadWrite)]
[DataField("sound", required: true)]
2022-08-31 12:24:21 +02:00
public SoundSpecifier? Sound;
}
}