EmitSound prediction (#13282)

This commit is contained in:
Kara
2023-01-04 12:56:35 -06:00
committed by GitHub
parent ba0510b62e
commit 07360a4c95
14 changed files with 186 additions and 141 deletions

View File

@@ -0,0 +1,17 @@
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 class BaseEmitSoundComponent : Component
{
public static readonly AudioParams DefaultParams = AudioParams.Default.WithVolume(-2f);
[ViewVariables(VVAccess.ReadWrite)]
[DataField("sound", required: true)]
public SoundSpecifier? Sound;
}
}