* Revert "#3935 implemented suggestions from PR" This reverts commit a9b1c7b96333ca570067d6a9df1954481005892a. * #4219 revert of single sound removal in EmitSoundSystem * #4219 single sounds in EmitSoundSystem should work now * #4219 some small project tweaks * #4219 upgraded EmitSoundSystem to use SoundSpecifier * #4219 pr tweaks * #4219 pr tweak * #4219 missing bike horn .yaml change
This commit is contained in:
22
Content.Server/Sound/Components/BaseEmitSoundComponent.cs
Normal file
22
Content.Server/Sound/Components/BaseEmitSoundComponent.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Content.Shared.Sound;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.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
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("sound")]
|
||||
public SoundSpecifier Sound { get; set; } = default!;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
[DataField("variation")]
|
||||
public float PitchVariation { get; set; } = 0.0f;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user