BodyEmotesComponent.cs 812 B

123456789101112131415161718192021222324
  1. using Content.Server.Emoting.Systems;
  2. using Content.Shared.Chat.Prototypes;
  3. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  4. namespace Content.Server.Emoting.Components;
  5. /// <summary>
  6. /// Component required for entities to be able to do body emotions (clap, flip, etc).
  7. /// </summary>
  8. [RegisterComponent]
  9. [Access(typeof(BodyEmotesSystem))]
  10. public sealed partial class BodyEmotesComponent : Component
  11. {
  12. /// <summary>
  13. /// Emote sounds prototype id for body emotes.
  14. /// </summary>
  15. [DataField("soundsId", customTypeSerializer: typeof(PrototypeIdSerializer<EmoteSoundsPrototype>))]
  16. public string? SoundsId;
  17. /// <summary>
  18. /// Loaded emote sounds prototype used for body emotes.
  19. /// </summary>
  20. public EmoteSoundsPrototype? Sounds;
  21. }