Adds a new resource restriction, which means this building needs to placed directly next to this resource
Adds a new requirement
Requires that the given resource is produced before placing the building
Returns the required blueprint resources, scaled by the difficulties multiplicator
resource id -> amount
Returns the base blueprint resources. Those are scaled with the difficulties multiplayer for blueprint resources later on
Game root is required to figure out how many of this building have been placed already
The faction for which to check
Returns a map from resource -> amount of resources required to build
The sprite to use for the blueprint
The id of the sprite to use for the blueprint rendering
Returns the build duration
Game root is required to get difficulty
The players faction
Time to build in seconds
Returns the build duration
Game root is required to figure out how many of this building have been placed already
The faction to check
Time to build in seconds
The sprite to use when rendering this building when ith as no upgrades unlocked
The id of the first sprite of this building
Returns the description of this building
The display name of this building
A map resource to highlight when placing this building
Returns the unique buiding id
Returns if the building is available in the given mode
Should return the placement radius helper style
Should return the radius of the helper when placing, or null to show none
The restrictions for placing this building
The sprite to use in previews of this building
The id of the sprite to use in previews of this buildings
Returns unlock requirements
The requirements for placing this building
Returns the description of this building
Returns whether to highlight all free tiles which are explored when placing. Default is to always show this except when a resource is highlighted.
Whether to highlight free tiles when placing
Returns a list of upgrades, see getUpgradesUncached()
Upgrades
Whether to use the adjacent placement mode, this is mainly useful and used by walls
Whether to use the adjacent mode
Adds the given upgrade of the playerbase as a requirement to build