User Tools

Site Tools


api:comp_building

COMP_BUILDING

Category: Component

Parent class: COMPONENT

Properties


AssetBuilding


EditMode

  • Type: boolean
  • Default value: false

AppliedMaterialSetIndex

  • Type: integer
  • 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_UPKEEP_COST_CHANGED(list<RESOURCE_QUANTITY_PAIR>, list<RESOURCE_QUANTITY_PAIR>)


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_PART_BUILT

ON_BUILDING_PART_BUILT(COMP_BUILDING_PART)


ON_MATERIAL_SET_CHANGED

ON_MATERIAL_SET_CHANGED()

api/comp_building.txt · Last modified: 2020/10/22 10:16 (external edit)