Files
tbd-station-14/Content.Server/Sound/BaseEmitSoundComponent.cs
Galactic Chimp c8e3775ea5 Revert "#3935 implemented suggestions from PR"
This reverts commit a9b1c7b96333ca570067d6a9df1954481005892a.
2021-06-27 21:27:59 +02:00

18 lines
712 B
C#

using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Sound
{
/// <summary>
/// Base sound emitter which defines most of the data fields.
/// Default behavior first try to play the sound collection,
/// and if one isn't assigned, then it will try to play the single sound.
/// </summary>
public abstract class BaseEmitSoundComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)] [DataField("variation")] public float PitchVariation { get; set; }
[ViewVariables(VVAccess.ReadWrite)] [DataField("soundCollection")] public string? SoundCollectionName { get; set; }
}
}