Skip to content

BuildingRef

Read-only building snapshot. Returned by: outpost.buildings() and OutpostRef.buildings().

MemberReturnsMeaning
.idstringStable component id; get_component(id) reaches the full machine API
.namestringDisplay name at snapshot time (e.g. "Iron Ore Bin")
.type_idstringMachine type id ("storage_bin", "smelter", "solar_generator"…); stable forever, use for branching
.outpost_idstringId of the owning outpost
.outpostOutpostRef or NoneSnapshot back-reference to the owning outpost
.poweredbooleanPower toggle state at snapshot time
.position[x, y]World coordinates: the deploy anchor, and the docking target for at-building vehicle actions

For live power, counts, recipes, or materials, call get_component(ref.id).