2022-01-29 08:21:38 +03:00
|
|
|
|
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]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class ExaminableDamageComponent : Component
|
2022-01-29 08:21:38 +03:00
|
|
|
|
{
|
|
|
|
|
|
[DataField("messages", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<ExaminableDamagePrototype>))]
|
|
|
|
|
|
public string? MessagesProtoId;
|
|
|
|
|
|
|
|
|
|
|
|
public ExaminableDamagePrototype? MessagesProto;
|
|
|
|
|
|
}
|