forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Network BaseEmitSoundComponent (space-wizards#29400)
* Network BaseEmitSoundComponent * high intelligence
- Loading branch information
1 parent
4add557
commit 8499ec7
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
24 changes: 12 additions & 12 deletions
24
Content.Shared/Sound/Components/BaseEmitSoundComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
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 | ||
{ | ||
/// <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); | ||
public static readonly AudioParams DefaultParams = AudioParams.Default.WithVolume(-2f); | ||
|
||
[ViewVariables(VVAccess.ReadWrite)] | ||
[DataField("sound", required: true)] | ||
public SoundSpecifier? Sound; | ||
} | ||
[AutoNetworkedField] | ||
[ViewVariables(VVAccess.ReadWrite)] | ||
[DataField(required: true)] | ||
public SoundSpecifier? Sound; | ||
} |