User Tools

Site Tools


api:building_function

BUILDING_FUNCTION

Properties


Name

  • Type: string

HasMaximumInstance

  • Type: boolean
  • Default value: false

MaximumInstanceAllowed

  • Type: integer
  • Default value: 1

UpkeepPerCapacity

UpkeepPerCapacityMultiplier

  • Type: float
  • Default value: 1.0f

Functions


onBuildingFunctionAvailable

Virtual function

void onBuildingFunctionAvailable(level)

Name Type Description
level LEVEL

activateBuilding

Virtual function

boolean activateBuilding(object)

Name Type Description
object GAME_OBJECT

reloadBuildingFunction

Virtual function

void reloadBuildingFunction(object)

Name Type Description
object GAME_OBJECT

removeBuildingFunction

Virtual function

void removeBuildingFunction(object)

Name Type Description
object GAME_OBJECT
api/building_function.txt · Last modified: 2020/10/22 10:15 (external edit)