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
-
buildings:item(
indexnumber
)
-
Returns a building from the list by its numeric index.
Parameters:
1
index
Returns:
buildingbattle_building