Audible emotes (#12708)
Co-authored-by: Visne <39844191+Visne@users.noreply.github.com>
This commit is contained in:
24
Content.Server/Emoting/Components/BodyEmotesComponent.cs
Normal file
24
Content.Server/Emoting/Components/BodyEmotesComponent.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Content.Server.Emoting.Systems;
|
||||
using Content.Shared.Chat.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.Emoting.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Component required for entities to be able to do body emotions (clap, flip, etc).
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(BodyEmotesSystem))]
|
||||
public sealed class BodyEmotesComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Emote sounds prototype id for body emotes.
|
||||
/// </summary>
|
||||
[DataField("soundsId", customTypeSerializer: typeof(PrototypeIdSerializer<EmoteSoundsPrototype>))]
|
||||
public string? SoundsId;
|
||||
|
||||
/// <summary>
|
||||
/// Loaded emote sounds prototype used for body emotes.
|
||||
/// </summary>
|
||||
public EmoteSoundsPrototype? Sounds;
|
||||
}
|
||||
Reference in New Issue
Block a user