User Tools

Site Tools


api:comp_building

COMP_BUILDING

Category: Component

Parent class: COMPONENT
Lazy-init

Properties


AssetBuilding

Serialized, Savegame


EditMode

Serialized

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

AppliedMaterialSetIndex

Serialized

  • Type: integer
  • Expected: integer value
  • Default value: 0

Functions


getBuildingPartList

list<COMP_BUILDING_PART> getBuildingPartList()

Events


ON_PREVIEW_PART_ADDED

ON_PREVIEW_PART_ADDED(COMP_BUILDING_PART)


ON_PREVIEW_PART_PLACED

ON_PREVIEW_PART_PLACED(COMP_BUILDING_PART, boolean)


ON_BUILDING_PART_REMOVED

ON_BUILDING_PART_REMOVED(COMP_BUILDING_PART, boolean)


ON_CONSTRUCTION_STARTED

ON_CONSTRUCTION_STARTED(COMP_BUILDING)


ON_UPGRADING

ON_UPGRADING(COMP_BUILDING)


ON_BUILDING_DESTROYED

ON_BUILDING_DESTROYED(COMP_BUILDING)


ON_BUILDING_COMPLETE

ON_BUILDING_COMPLETE(COMP_BUILDING, boolean)


ON_UPKEEP_COST_CHANGED

ON_PREVIEW_UPKEEP_COST_CHANGED

ON_PREVIEW_UPKEEP_COST_CHANGED()


ON_CUSTOM_NAME_CHANGED

ON_CUSTOM_NAME_CHANGED(string)


ON_BUILDING_CHANGED

ON_BUILDING_CHANGED()


ON_BUILDING_BATCH_CHANGE_FINISHED

ON_BUILDING_BATCH_CHANGE_FINISHED()


ON_BUILDING_BATCH_CHANGE_IN_FRAME

ON_BUILDING_BATCH_CHANGE_IN_FRAME()


ON_BUILDING_PART_BUILT

ON_BUILDING_PART_BUILT(COMP_BUILDING_PART)


ON_MATERIAL_SET_CHANGED

ON_MATERIAL_SET_CHANGED()


ON_SPLENDOR_UPDATE

ON_SPLENDOR_UPDATE()

api/comp_building.txt · Last modified: 2022/02/15 14:50 (external edit)