1
0

ExaminableDamageComponent.cs 588 B

12345678910111213141516
  1. using Content.Shared.Damage.Prototypes;
  2. using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
  3. namespace Content.Server.Damage.Components;
  4. /// <summary>
  5. /// This component shows entity damage severity when it is examined by player.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class ExaminableDamageComponent : Component
  9. {
  10. [DataField("messages", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<ExaminableDamagePrototype>))]
  11. public string? MessagesProtoId;
  12. public ExaminableDamagePrototype? MessagesProto;
  13. }