DeathgaspComponent.cs 599 B

123456789101112131415161718
  1. using Content.Shared.Chat.Prototypes;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  3. namespace Content.Server.Mobs;
  4. /// <summary>
  5. /// Mobs with this component will emote a deathgasp when they die.
  6. /// </summary>
  7. /// <see cref="DeathgaspSystem"/>
  8. [RegisterComponent]
  9. public sealed partial class DeathgaspComponent : Component
  10. {
  11. /// <summary>
  12. /// The emote prototype to use.
  13. /// </summary>
  14. [DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer<EmotePrototype>))]
  15. public string Prototype = "DefaultDeathgasp";
  16. }