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