Network BaseEmitSoundComponent (#29400)

* Network BaseEmitSoundComponent

* high intelligence
This commit is contained in:
metalgearsloth
2024-06-24 19:55:28 +10:00
committed by GitHub
parent 6888511e03
commit c6e5b2339e

View File

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