2022-05-29 02:29:10 -04:00
|
|
|
|
namespace Content.Server.Explosion.Components;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Triggers when the entity is overlapped for the specified duration.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class TriggerOnTimedCollideComponent : Component
|
2022-05-29 02:29:10 -04:00
|
|
|
|
{
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
|
[DataField("threshold")]
|
|
|
|
|
|
public float Threshold;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A collection of entities that are colliding with this, and their own unique accumulator.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
|
public readonly Dictionary<EntityUid, float> Colliding = new();
|
|
|
|
|
|
}
|