query · world.project

Authored project alternatives

Returns the settlement's authored building alternatives and immutable construction facts without selecting or proposing a project.

world.project.alternatives(filters?, cursor?, page_size?) -> query-page
Stable ID
world.project.alternatives
Owner
game.runtime-settlement-definition and assets.runtime-content-catalog
Authority
read_only
Timing
immediate
Availability
active-session
Side effects
none
Determinism
stable owner order at the current committed tick
Introduced
1.3.0

Usage

List the active scenario's authored building alternatives in authored order. This query exposes immutable choices but does not propose, score, or select a project.

Parameters

Returns

Detached project alternatives with building identity, name, function, material summary, work requirement, capacity, and footprint size.

Cost

One bounded content-catalog visit per alternative and required material.

Fields

IDTypeUnitsRequiredDescription
base_capacityunsigned-integernoneyesAuthored base capacity.
choice_ordinalunsigned-integernoneyesAuthored one-based choice order.
definition_idstringnoneyesBuilding definition identity.
display_namestringnoneyesPlayer-facing building name.
footprint_cellsunsigned-integernoneyesOccupied footprint cell count.
footprint_height_cellsunsigned-integerWorld-grid cellsyesBounding footprint height.
footprint_width_cellsunsigned-integerWorld-grid cellsyesBounding footprint width.
functionenumerationnoneyesBuilding function.
materialsstringnoneyesRequired material summary.
required_work_unitsunsigned-integerwork-unitsyesRequired physical work.

Errors

Examples

local projects = world.query("world.project.alternatives", {page_size = 8})

API history

Related symbols

Project references