mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-02 09:07:27 +00:00
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
21 lines
716 B
C#
21 lines
716 B
C#
using Content.Shared.Damage.Prototypes;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.Damage.Components;
|
|
|
|
/// <summary>
|
|
/// This component shows entity damage severity when it is examined by player.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public class ExaminableDamageComponent : Component
|
|
{
|
|
public override string Name => "ExaminableDamage";
|
|
|
|
[DataField("messages", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<ExaminableDamagePrototype>))]
|
|
public string? MessagesProtoId;
|
|
|
|
public ExaminableDamagePrototype? MessagesProto;
|
|
}
|