Files
tbd-station-14/Content.Server/Sound/Components/BaseEmitSoundComponent.cs
2022-08-31 03:24:21 -07:00

18 lines
532 B
C#

using Robust.Shared.Audio;
namespace Content.Server.Sound.Components
{
/// <summary>
/// Base sound emitter which defines most of the data fields.
/// Accepts both single sounds and sound collections.
/// </summary>
public abstract class BaseEmitSoundComponent : Component
{
public static readonly AudioParams DefaultParams = AudioParams.Default.WithVolume(-2f);
[ViewVariables(VVAccess.ReadWrite)]
[DataField("sound", required: true)]
public SoundSpecifier? Sound;
}
}