Skip to content

GetBuildingTypeCount

Read building type count from current game state.

GetBuildingTypeCount(buildingType)

Inputs: buildingType is an integer building type ID.

Output: count, available: Completed assigned-player building count.

Errors and unavailable states: Wrong argument types can raise a Lua argument error. If available is false, ignore the first return value; it is not a confirmed result.

See Game data and world for related calls and usage notes.