Files
crystall-punk-14/Content.Server/Sound/Components/BaseEmitSoundComponent.cs

18 lines
532 B
C#
Raw Normal View History

using Robust.Shared.Audio;
2021-06-27 21:55:18 +02:00
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
{
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;
}
}