Table of Contents

Struct SpatialTriggerResult

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Zero-allocation result of a trigger region evaluation. Contains EntityIds of entities that entered, left, or stayed. Spans point into system-internal buffers and are valid only until the next EvaluateRegion call.

public readonly ref struct SpatialTriggerResult
Inherited Members

Fields

Entered

EntityIds of entities that entered the region since the last evaluation.

public readonly ReadOnlySpan<long> Entered

Field Value

ReadOnlySpan<long>

Left

EntityIds of entities that left the region since the last evaluation.

public readonly ReadOnlySpan<long> Left

Field Value

ReadOnlySpan<long>

StayCount

Count of entities still inside the region (IDs not materialized for performance).

public readonly int StayCount

Field Value

int

WasEvaluated

True if the region was actually evaluated this tick (false when skipped due to frequency gating).

public readonly bool WasEvaluated

Field Value

bool