CatStation/Content.Shared/Trigger/Components/Conditions/UseDelayTriggerConditionComponent.cs
Sir Warock ec63a41842
Cleanup of UseDelay (#45350)
* Moving into Systems & Components Folders

* splitting into API file

* Make Method accept null values

* small fix
2026-09-05 17:10:50 +00:00

20 lines
665 B
C#

using Content.Shared.Timing.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Trigger.Components.Conditions;
/// <summary>
/// Checks if the triggered entity has an active UseDelay.
/// </summary>
/// <remarks>
/// TODO: Support specific UseDelay IDs for each trigger key.
/// </remarks>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class UseDelayTriggerConditionComponent : BaseTriggerConditionComponent
{
/// <summary>
/// Checks if the triggered entity has an active UseDelay.
/// </summary>
[DataField, AutoNetworkedField]
public string UseDelayId = UseDelaySystem.DefaultId;
}