using Robust.Shared.GameStates; namespace Content.Shared.Trigger.Components.Triggers; /// /// Triggers when the entity is overlapped for the specified duration. /// The user is the entity that passes the time threshold while colliding. /// [RegisterComponent, NetworkedComponent, AutoGenerateComponentState] public sealed partial class TriggerOnTimedCollideComponent : BaseTriggerOnXComponent { /// /// The time an entity has to collide until the trigger is activated. /// [DataField, AutoNetworkedField] public TimeSpan Threshold = TimeSpan.FromSeconds(1); /// /// A collection of entities that are currently colliding with this, and their own unique accumulator. /// /// /// TODO: Add AutoPausedField and (de)serialize values as time offsets when https://github.com/space-wizards/RobustToolbox/issues/3768 is fixed. /// [DataField, AutoNetworkedField] public Dictionary Colliding = new(); }