query · world.settlement

Settlement housing parcels

Returns Settlement-owned physically feasible new-housing parcel alternatives from the latest selected new-construction method, including the exact composite key, placement, source revisions, score components, selection, and rejection reason.

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

Usage

Inspect the Settlement-owned comparison of complete World parcel alternatives for the currently selected new-construction housing method. Supply settlement_id and optionally household_id. The query cannot reserve land, create construction work, or mutate any gameplay owner.

Parameters

Returns

Detached parcel rows with composite identity, source method, Household and building definition, area, origin, rotation variant, footprint and access evidence, source revisions, pressure, service, neighboring-land, material, labor, travel, control, risk, total score, selection or direct rejection, and explanation.

Cost

One exact Settlement lookup plus one bounded traversal of the current retained parcel ledger. Recurring comparison uses the settlement definition's World candidate and proximity-cell visit budgets.

Fields

IDTypeUnitsRequiredDescription
access_distanceunsigned-integermillimetersyesExact path distance.
access_travel_ticksunsigned-integerfixed-ticksyesExact path travel cost.
access_xsigned-integerworld-cellsyesReachable perimeter access x.
access_ysigned-integerworld-cellsyesReachable perimeter access y.
area_idstable-idnoneyesWorld land-area identity.
area_revisionrevisionnoneyesWorld land-area revision.
building_definition_idstringnoneyesBuilding definition to place.
control_certaintyunsigned-integerbasis-pointsyesCurrent Site control certainty.
detailstringnoneyesDirect selection or rejection explanation.
footprint_cell_countunsigned-integernoneyesExact occupied-cell count.
footprint_variant_idstringnoneyesPre-rotated footprint identity.
household_idstable-idnoneyesHousehold requiring the new residence.
household_revisionrevisionnoneyesHousehold revision assessed.
infrastructure_revisionrevisionnoneyesWorld infrastructure revision.
labor_readinessunsigned-integerbasis-pointsyesLabor readiness.
material_readinessunsigned-integerbasis-pointsyesMaterial readiness.
method_option_keystringnoneyesSelected housing-method source identity.
method_scoreunsigned-integerbasis-pointsyesSelected housing-method score.
navigation_revisionrevisionnoneyesWorld navigation revision.
neighboring_land_useunsigned-integerbasis-pointsyesCompatible neighboring settlement land.
option_keystringnoneyesStable composite parcel option identity.
origin_xsigned-integerworld-cellsyesExact footprint origin x.
origin_ysigned-integerworld-cellsyesExact footprint origin y.
policy_keystringnoneyesData-authored housing policy identity.
pressureunsigned-integerbasis-pointsyesCurrent housing pressure.
rejectionenumerationnoneyesDirect policy or portfolio result.
resource_revisionrevisionnoneyesResource revision assessed.
riskunsigned-integerbasis-pointsyesHousing-method risk.
scoresigned-integerbasis-pointsyesWeighted parcel score.
selectedbooleannoneyesWhether this is the selected settlement parcel.
service_accessunsigned-integerbasis-pointsyesNearby road-service access.
settlement_idstable-idnoneyesSettlement identity.
settlement_revisionrevisionnoneyesCurrent Settlement owner revision.
source_method_evaluation_tickunsigned-integerfixed-ticksyesHousing-method evaluation used.
source_settlement_revisionrevisionnoneyesSettlement revision assessed.
travel_efficiencyunsigned-integerbasis-pointsyesInverse travel cost.
work_revisionrevisionnoneyesWork revision assessed.
world_revisionrevisionnoneyesCombined World evidence revision.

Errors

Examples

local parcels = world.query("world.settlement.housing-parcels", {filters = {settlement_id = 1}, page_size = 16})
for _, parcel in ipairs(parcels.records) do
    ui.text(parcel.option_key, parcel.rejection .. ": " .. parcel.detail)
end

API history

Related symbols

Project references