Network BaseEmitSoundComponent (#29400)
* Network BaseEmitSoundComponent * high intelligence
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
using Robust.Shared.Audio;
|
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.
|
|
||||||
/// </summary>
|
|
||||||
public abstract partial class BaseEmitSoundComponent : Component
|
|
||||||
{
|
|
||||||
public static readonly AudioParams DefaultParams = AudioParams.Default.WithVolume(-2f);
|
|
||||||
|
|
||||||
[ViewVariables(VVAccess.ReadWrite)]
|
/// <summary>
|
||||||
[DataField("sound", required: true)]
|
/// Base sound emitter which defines most of the data fields.
|
||||||
public SoundSpecifier? Sound;
|
/// Accepts both single sounds and sound collections.
|
||||||
}
|
/// </summary>
|
||||||
|
public abstract partial class BaseEmitSoundComponent : Component
|
||||||
|
{
|
||||||
|
public static readonly AudioParams DefaultParams = AudioParams.Default.WithVolume(-2f);
|
||||||
|
|
||||||
|
[AutoNetworkedField]
|
||||||
|
[ViewVariables(VVAccess.ReadWrite)]
|
||||||
|
[DataField(required: true)]
|
||||||
|
public SoundSpecifier? Sound;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user