* #3935 - toys properly play sounds when: Activated, Landed (after throwing) and Used in hand * #3935 - extracted BaseEmitSoundComponent * #3935 - refactored EmitSound components to use ECS * #3935 - added new components to client ignored components * #3935 - added suggested stuff for EmitSoundSystem et al. * #3935 added suggestions from PR * #3935 implemented suggestions from PR * #3935 updated namespace
This commit is contained in:
15
Content.Server/Sound/BaseEmitSoundComponent.cs
Normal file
15
Content.Server/Sound/BaseEmitSoundComponent.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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.
|
||||
/// </summary>
|
||||
public abstract class BaseEmitSoundComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("variation")] public float PitchVariation { get; set; } = 0.0f;
|
||||
[ViewVariables(VVAccess.ReadWrite)] [DataField("soundCollection", required: true)] public string SoundCollectionName { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user