User Tools

Site Tools


api:comp_building

COMP_BUILDING

Category: Component

Parent class: COMP_ABSTRACT_BUILDABLE

Lazy-init

Properties


AssetBuilding

Serialized, Savegame


AppliedMaterialSetIndex

Serialized

Functions


getBuildingPartList

list<COMP_BUILDING_PART> getBuildingPartList()


getSubBuildingList

list<COMP_BUILDING> getSubBuildingList()


getEditMode

boolean getEditMode([includeSubBuildings])

Name Type Description
includeSubBuildings boolean

Events


ON_PREVIEW_PART_ADDED

ON_PREVIEW_PART_ADDED(COMP_BUILDING_PART)


ON_PREVIEW_PART_MOVED

ON_PREVIEW_PART_MOVED(COMP_BUILDING_PART)


ON_PREVIEW_PART_PLACED

ON_PREVIEW_PART_PLACED(COMP_BUILDING_PART, boolean)


ON_EDIT_MODE_CHANGED

ON_EDIT_MODE_CHANGED(boolean)


ON_BUILDING_PART_REMOVED

ON_BUILDING_PART_REMOVED(COMP_BUILDING_PART isRootPart, boolean isRootPart)


ON_SUB_BUILDING_ADDED

ON_SUB_BUILDING_ADDED(COMP_BUILDING)


ON_SUB_BUILDING_DESTROYED

ON_SUB_BUILDING_DESTROYED(COMP_BUILDING)


ON_SUB_BUILDING_COMPLETED

ON_SUB_BUILDING_COMPLETED(COMP_BUILDING isConstructionFinished, boolean isConstructionFinished)


ON_CONSTRUCTION_STARTED

ON_CONSTRUCTION_STARTED(COMP_BUILDING)


ON_UPGRADING

ON_UPGRADING(COMP_BUILDING)


ON_BUILDING_DESTROYED

ON_BUILDING_DESTROYED(COMP_BUILDING)


ON_BUILDING_COMPLETED

ON_BUILDING_COMPLETED(COMP_BUILDING isConstructionFinished, boolean isConstructionFinished)


ON_CUSTOM_NAME_CHANGED

ON_CUSTOM_NAME_CHANGED(string)


ON_BUILDING_CHANGED

ON_BUILDING_CHANGED()


ON_BUILDING_FUNCTION_ASSIGNED

ON_BUILDING_FUNCTION_ASSIGNED()


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_CONSTRUCTION_CONDITION_TOGGLED

ON_CONSTRUCTION_CONDITION_TOGGLED()

api/comp_building.txt · Last modified: 2024/02/06 13:53 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki