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 Campaign
Loaded in Battle Loaded in Battle
Loaded in Frontend Loaded in Frontend
Back to top

Functionality

buildings:count()

Returns the number of buildings in the list.

Returns:

  1. number count

defined in ../../common/EmpireBattle/Source/BattleScript/BattleEditorScriptInterface.cpp, line 2414

buildings:item(number index)

Returns a building from the list by its numeric index.

Parameters:

1

number

index

Returns:

  1. battle_building building

defined in ../../common/EmpireBattle/Source/BattleScript/BattleEditorScriptInterface.cpp, line 2431

Last updated 12/08/2022 11:56:59