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

33 lines
1016 B
C#

using Content.Shared.Alert;
using Content.Shared.FixedPoint;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared._Offbrand.Wounds;
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(ShockAlertsSystem))]
public sealed partial class ShockAlertsComponent : Component
{
/// <summary>
/// The alert to display depending on the amount of shock. Highest key is selected.
/// </summary>
[DataField(required: true)]
public SortedDictionary<FixedPoint2, ProtoId<AlertPrototype>> Thresholds;
/// <summary>
/// The alert category of the alerts.
/// </summary>
[DataField(required: true)]
public ProtoId<AlertCategoryPrototype> AlertCategory;
/// <summary>
/// The alert to display when pain is suppressed.
/// </summary>
[DataField(required: true)]
public ProtoId<AlertPrototype> SuppressedAlert;
[DataField, AutoNetworkedField]
public ProtoId<AlertPrototype>? CurrentThresholdState;
}