using Content.Shared.ProximityDetection.Components;
namespace Content.Shared.ProximityDetection;
///
/// Raised to determine if proximity sensor can detect an entity.
///
[ByRefEvent]
public struct ProximityDetectionAttemptEvent(float distance, Entity detector, EntityUid target)
{
public bool Cancelled;
public readonly float Distance = distance;
public readonly Entity Detector = detector;
public readonly EntityUid Target = target;
}
///
/// Raised when distance from proximity sensor to the target was updated.
///
[ByRefEvent]
public readonly record struct ProximityTargetUpdatedEvent(float Distance, Entity Detector, EntityUid? Target = null);
///
/// Raised when proximity sensor got new target.
///
[ByRefEvent]
public readonly record struct NewProximityTargetEvent(float Distance, Entity Detector, EntityUid? Target = null);