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
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
Whether the building can be placed even if the area is not explored
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
Whether the building can be solt
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