Skip to content

Commit

Permalink
Network BaseEmitSoundComponent (space-wizards#29400)
Browse files Browse the repository at this point in the history
* Network BaseEmitSoundComponent

* high intelligence
  • Loading branch information
metalgearsloth authored and aspiringLich committed Jul 21, 2024
1 parent 4c0ed94 commit 64be04d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Content.Shared/Sound/Components/BaseEmitSoundComponent.cs
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;
}

0 comments on commit 64be04d

Please sign in to comment.