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

18 lines
510 B
C#
Raw Permalink Normal View History

using Robust.Shared.Audio;
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
{
public static readonly AudioParams DefaultParams = AudioParams.Default.WithVolume(-2f);
2022-07-29 14:13:12 +12:00
[AutoNetworkedField]
[ViewVariables(VVAccess.ReadWrite)]
[DataField(required: true)]
public SoundSpecifier? Sound;
}