User Tools

Site Tools


api:building_function

BUILDING_FUNCTION

Properties


Name

Serialized

  • Type: string
  • Expected: string value

Description

Serialized

  • Type: string
  • Expected: string value

HasMaximumInstance

Serialized

  • Type: boolean
  • Expected: boolean value
  • Default value: false

MaximumInstanceAllowed

Serialized

  • Type: integer
  • Expected: integer value
  • Default value: 1

UpkeepPerCapacity

Serialized


UpkeepPerCapacityMultiplier

Serialized

  • Type: float
  • Expected: float value
  • Default value: 1.0f

GameRuleModifierList

Serialized


IsDescriptionOverride

Serialized

  • Type: boolean
  • Expected: boolean value
  • Default value: true

ShowNameInTags

Serialized

  • Type: boolean
  • Expected: boolean value
  • Default value: false

IsDisplayable

Serialized

  • Type: boolean
  • Expected: boolean value
  • Default value: true

Functions


onBuildingFunctionAvailable

Virtual function

void onBuildingFunctionAvailable(level)

Name Type Description
level LEVEL

activateBuilding

Virtual function, Protected function

boolean activateBuilding(object)

Name Type Description
object GAME_OBJECT

reloadBuildingFunction

Virtual function, Protected function

void reloadBuildingFunction(object)

Name Type Description
object GAME_OBJECT

removeBuildingFunction

Virtual function, Protected function

void removeBuildingFunction(object)

Name Type Description
object GAME_OBJECT
api/building_function.txt · Last modified: 2022/02/15 14:48 (external edit)