query · world.infrastructure

World local infrastructure

Returns bounded World-owned local road, fence, and gate plans with typed connection anchors, immutable geometry counts, material, access, condition, and lifecycle.

world.infrastructure.local(filters?, cursor?, page_size?) -> query-page
Stable ID
world.infrastructure.local
Owner
sim.world
Authority
read_only
Timing
immediate
Availability
active-session
Side effects
none
Determinism
stable owner order at the current committed tick
Introduced
1.19.0

Usage

Read stable World-owned local infrastructure records. Typed endpoint anchors distinguish buildings, landmarks, dedicated land, settlements, and regional connections; lifecycle and condition remain detached read-only facts.

Parameters

Returns

A detached page containing identity, kind, typed anchors, endpoint cells, material, access policy, lifecycle stage, condition, geometry counts, revision, and causal ticks.

Cost

Bounded by page size and owner-visit budgets. World resumes from the stable identity cursor without scanning preceding records.

Fields

IDTypeUnitsRequiredDescription
access_policy_idstringnoneyesReferenced access-policy identity.
cell_countunsigned-integernoneyesCells in road geometry.
conditionunsigned-integerbasis-pointsyesCurrent condition.
created_at_tickunsigned-integerticksyesPlan creation tick.
edge_countunsigned-integernoneyesEdges in fence or gate geometry.
from_anchor_idstable-idnoneyesFirst connection anchor identity.
from_anchor_kindenumerationnoneyesFirst typed connection anchor.
from_cell_xsigned-integergrid-cellsyesFirst anchor cell X.
from_cell_ysigned-integergrid-cellsyesFirst anchor cell Y.
infrastructure_idstable-idnoneyesLocal infrastructure identity.
kindenumerationnoneyesRoad, fence, or gate.
material_resource_idstringnoneyesValidated physical material identity.
permits_construction_accessbooleannoneyesWhether the referenced policy permits construction access.
permits_field_accessbooleannoneyesWhether the referenced policy permits field work access.
permits_local_travelbooleannoneyesWhether the referenced policy permits Actor traversal.
revisionrevisionnoneyesWorld infrastructure revision.
stageenumerationnoneyesCurrent infrastructure lifecycle stage.
to_anchor_idstable-id-or-nullnonenoSecond connection anchor identity.
to_anchor_kindenumeration-or-nullnonenoSecond typed connection anchor.
to_cell_xsigned-integer-or-nullgrid-cellsnoSecond anchor cell X.
to_cell_ysigned-integer-or-nullgrid-cellsnoSecond anchor cell Y.
travel_reductionunsigned-integerbasis-pointsyesMaximum road traversal-cost reduction at full condition.
updated_at_tickunsigned-integerticksyesLatest World mutation tick.

Errors

Examples

local result = world.query("world.infrastructure.local", {page_size = 16})
if result.status == "completed" then
    for _, item in ipairs(result.records) do
        ui.row(item.kind .. " " .. tostring(item.infrastructure_id), item.from_anchor_kind .. " to " .. tostring(item.to_anchor_kind))
    end
end

API history

Related symbols

Project references