Files
tbd-station-14/Content.Shared/_Offbrand/Wounds/HeartrateAlertsComponent.cs
Janet Blackquill 5fa17e22a1 De-MPL Offbrand
2025-09-27 22:43:24 -04:00

37 lines
1.1 KiB
C#

using Content.Shared.Alert;
using Content.Shared.FixedPoint;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Shared._Offbrand.Wounds;
[RegisterComponent, NetworkedComponent]
[Access(typeof(HeartrateAlertsSystem))]
public sealed partial class HeartrateAlertsComponent : Component
{
/// <summary>
/// Alert displayed if the heart is running, severity increases with strain
/// </summary>
[DataField(required: true)]
public ProtoId<AlertPrototype> StrainAlert;
/// <summary>
/// Alert displayed if the heart is stopped
/// </summary>
[DataField(required: true)]
public ProtoId<AlertPrototype> StoppedAlert;
/// <summary>
/// The category of the alerts
/// </summary>
[DataField(required: true)]
public ProtoId<AlertCategoryPrototype> AlertCategory;
/// <summary>
/// The maximum strain for the <see cref="StrainAlert" />
/// </summary>
[DataField(required: true)]
public FixedPoint2 MaxStrain;
}