query · world.landscape

World landscape features

Returns bounded World-owned landscape identities, cluster membership, placement, and stable variation inputs without exposing render frame choices as simulation truth.

world.landscape.features(filters?, cursor?, page_size?) -> query-page
Stable ID
world.landscape.features
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 retained World landscape placement and lifecycle in stable feature order. Current appearance, lifecycle policy, kind, stage, maturity, renewal, and harvest facts come from World state; the variation key remains only a repeatable input for derived presentation. The query grants no mutation, atlas, or frame-choice authority.

Parameters

Returns

A detached page containing feature and cluster identities, current family and lifecycle-policy identities, kind, stage, maturity, renewal and harvest ticks, canonical cell, density, revisions, creation tick, and stable variation key.

Cost

Bounded by page size and package query and owner-visit budgets. World resumes from the stable feature identity cursor without activating cold chunks.

Fields

IDTypeUnitsRequiredDescription
appearance_family_idstringnoneyesCurrent validated landscape appearance-family identity.
cell_xsigned-integergrid-cellsyesWorld-grid cell X coordinate.
cell_ysigned-integergrid-cellsyesWorld-grid cell Y coordinate.
cluster_idstable-idnoneyesWorld landscape cluster identity.
cluster_revisionrevisionnoneyesWorld landscape cluster revision.
created_at_tickunsigned-integerticksyesCluster creation tick.
densityunsigned-integerbasis-pointsyesAuthored cluster density.
feature_idstable-idnoneyesWorld landscape feature identity.
feature_revisionrevisionnoneyesWorld landscape feature revision.
kindenumerationnoneyesTree, bush, or rock.
last_harvested_at_tickunsigned-integer-or-nullticksnoMost recent committed harvest tick.
lifecycle_policy_idstringnoneyesImmutable lifecycle and yield policy identity.
maturityunsigned-integerbasis-pointsyesCurrent feature maturity.
regrowth_due_tickunsigned-integer-or-nullticksnoCausal regrowth eligibility tick when the harvested feature is renewable.
stageenumerationnoneyesStanding, stump, or cleared.
variation_keyunsigned-integernoneyesStable derived input used to choose among validated appearance frames.

Errors

Examples

local result = world.query("world.landscape.features", {page_size = 32})
if result.status == "completed" then
    for _, feature in ipairs(result.records) do
        ui.row(feature.appearance_family_id, tostring(feature.cell_x) .. ", " .. tostring(feature.cell_y))
    end
end

API history

Related symbols

Project references