CatStation/Content.Shared/StatusEffectNew/Components/StatusEffectAlertComponent.cs
Fildrance f4d223b2e1
refactor: rework the new status effect system to use containers (#38915) (#38943)
Co-authored-by: Perry Fraser <perryprog@users.noreply.github.com>
2025-07-12 19:53:08 +02:00

26 lines
805 B
C#

using Content.Shared.Alert;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.StatusEffectNew.Components;
/// <summary>
/// Used in conjunction with <see cref="StatusEffectComponent"/> to display an alert when the status effect is present.
/// </summary>
[RegisterComponent, NetworkedComponent]
[EntityCategory("StatusEffects")]
public sealed partial class StatusEffectAlertComponent : Component
{
/// <summary>
/// Status effect indication for the player.
/// </summary>
[DataField]
public ProtoId<AlertPrototype> Alert;
/// <summary>
/// If the status effect has a set end time and this is true, a duration
/// indicator will be displayed with the alert.
/// </summary>
[DataField]
public bool ShowDuration = true;
}