mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
25 lines
789 B
C#
25 lines
789 B
C#
using Content.Shared.StatusEffectNew.Components;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Trigger.Components.Effects;
|
|
|
|
/// <summary>
|
|
/// Adds a status effect when triggered.
|
|
/// If TargetUser is true the user will gain the effect.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
public sealed partial class SetStatusEffectOnTriggerComponent : BaseXOnTriggerComponent
|
|
{
|
|
/// <summary>
|
|
/// Status effect to be added.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public EntProtoId<StatusEffectComponent> Status;
|
|
|
|
/// <summary>
|
|
/// How long the status lasts. Permanent until removed if null.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public TimeSpan? Duration;
|
|
}
|