1
0

TriggerOnTimedCollideComponent.cs 566 B

123456789101112131415161718
  1. namespace Content.Server.Explosion.Components;
  2. /// <summary>
  3. /// Triggers when the entity is overlapped for the specified duration.
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class TriggerOnTimedCollideComponent : Component
  7. {
  8. [ViewVariables(VVAccess.ReadWrite)]
  9. [DataField("threshold")]
  10. public float Threshold;
  11. /// <summary>
  12. /// A collection of entities that are colliding with this, and their own unique accumulator.
  13. /// </summary>
  14. [ViewVariables]
  15. public readonly Dictionary<EntityUid, float> Colliding = new();
  16. }