mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* Moving into Systems & Components Folders * splitting into API file * Make Method accept null values * small fix
20 lines
665 B
C#
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;
|
|
}
|