Buildings
The buildings
container object is a list of individual battle_building
objects. It can be retrieved by calling battle:buildings
.
Loaded in Campaign | |
Loaded in Battle | |
Loaded in Frontend |
-
buildings:count()
-
Returns the number of buildings in the list.
Returns:
countnumber
defined in ../../common/EmpireBattle/Source/BattleScript/BattleEditorScriptInterface.cpp, line 2414
-
buildings:item(
indexnumber
)
-
Returns a building from the list by its numeric index.
Parameters:
1
index
Returns:
buildingbattle_building
defined in ../../common/EmpireBattle/Source/BattleScript/BattleEditorScriptInterface.cpp, line 2431