urt-rs / docs /research /RUST_LINKED_LOCATION.md
nmarshall's picture
gameplay: query linked location triggers
264d595
|
Raw History Blame Contribute Delete
798 Bytes

Location lookup over linked slots

nearest_linked_location uses the sector index to generate candidates when no unexpired cache entry applies. It queries the same actor-relative box at the original capacity of 1024 and skips linked slots without a location entry. The first trigger in link traversal order wins. The fallback list retains its own traversal and visibility rules even when there are no matching linked candidates.

Nine composition cases exercise relink order, cache expiry, non-location slots, exact boundary overlap, nonzero actor coordinates, and fallback behavior. The focused check also reruns the existing QVM parity for nearest location and radio. The adapter still takes location records, cache expiry and fallback visibility from its caller.