====== COMPONENT ====== **[[:custom-classes#Extendable classes|Extendable]]**\\ **Category**: Data Inherited by: * [[:api:comp_abstract_buildable | COMP_ABSTRACT_BUILDABLE]] * [[:api:comp_accommodation | COMP_ACCOMMODATION]] * [[:api:comp_agent | COMP_AGENT]] * [[:api:comp_agent_need_processor | COMP_AGENT_NEED_PROCESSOR]] * [[:api:comp_belfry | COMP_BELFRY]] * [[:api:comp_building_attach_node | COMP_BUILDING_ATTACH_NODE]] * [[:api:comp_building_manager | COMP_BUILDING_MANAGER]] * [[:api:comp_building_zone | COMP_BUILDING_ZONE]] * [[:api:comp_character_setuper | COMP_CHARACTER_SETUPER]] * [[:api:comp_construction_steps_visual | COMP_CONSTRUCTION_STEPS_VISUAL]] * [[:api:comp_crop_field_element | COMP_CROP_FIELD_ELEMENT]] * [[:api:comp_dirt_circle | COMP_DIRT_CIRCLE]] * [[:api:comp_dirt_rectangle | COMP_DIRT_RECTANGLE]] * [[:api:comp_environment_system | COMP_ENVIRONMENT_SYSTEM]] * [[:api:comp_falling_tree | COMP_FALLING_TREE]] * [[:api:comp_grounded | COMP_GROUNDED]] * [[:api:comp_guest | COMP_GUEST]] * [[:api:comp_happiness_giver | COMP_HAPPINESS_GIVER]] * [[:api:comp_immigration_manager | COMP_IMMIGRATION_MANAGER]] * [[:api:comp_interactive_location | COMP_INTERACTIVE_LOCATION]] * [[:api:comp_inventory | COMP_INVENTORY]] * [[:api:comp_knight_statue | COMP_KNIGHT_STATUE]] * [[:api:comp_livestock | COMP_LIVESTOCK]] * [[:api:comp_main_game_loop | COMP_MAIN_GAME_LOOP]] * [[:api:comp_mandate_manager | COMP_MANDATE_MANAGER]] * [[:api:comp_mandate_office | COMP_MANDATE_OFFICE]] * [[:api:comp_market_tent | COMP_MARKET_TENT]] * [[:api:comp_particle_emitter | COMP_PARTICLE_EMITTER]] * [[:api:comp_particle_emitter_toggle | COMP_PARTICLE_EMITTER_TOGGLE]] * [[:api:comp_patrol_watchpost | COMP_PATROL_WATCHPOST]] * [[:api:comp_plantable | COMP_PLANTABLE]] * [[:api:comp_quotable | COMP_QUOTABLE]] * [[:api:comp_resource_container | COMP_RESOURCE_CONTAINER]] * [[:api:comp_resource_container_depleter | COMP_RESOURCE_CONTAINER_DEPLETER]] * [[:api:comp_resource_depot | COMP_RESOURCE_DEPOT]] * [[:api:comp_resource_generator | COMP_RESOURCE_GENERATOR]] * [[:api:comp_resource_stockpile | COMP_RESOURCE_STOCKPILE]] * [[:api:comp_resource_to_pickup | COMP_RESOURCE_TO_PICKUP]] * [[:api:comp_rigid_body | COMP_RIGID_BODY]] * [[:api:comp_self_destroy | COMP_SELF_DESTROY]] * [[:api:comp_soldier | COMP_SOLDIER]] * [[:api:comp_taxation_manager | COMP_TAXATION_MANAGER]] * [[:api:comp_tax_collectable | COMP_TAX_COLLECTABLE]] * [[:api:comp_trader | COMP_TRADER]] * [[:api:comp_tree | COMP_TREE]] * [[:api:comp_vehicle | COMP_VEHICLE]] * [[:api:comp_villager | COMP_VILLAGER]] * [[:api:comp_villager_manager | COMP_VILLAGER_MANAGER]] * [[:api:comp_visitor | COMP_VISITOR]] * [[:api:comp_warehouse_setuper | COMP_WAREHOUSE_SETUPER]] * [[:api:comp_workplace | COMP_WORKPLACE]] ===== Properties ===== ---- ==== Enabled ==== //[[:annotations#runtime_only|Runtime only]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' ===== Functions ===== ---- ==== getOwner ==== ''[[:api:game_object | GAME_OBJECT]] **getOwner**()'' ---- ==== getLevel ==== ''[[:api:level | LEVEL]] **getLevel**()'' ---- ==== isPreInitialized ==== ''[[:data-types#boolean|boolean]] **isPreInitialized**()'' ---- ==== isInitialized ==== ''[[:data-types#boolean|boolean]] **isInitialized**()'' ---- ==== isEnabled ==== ''[[:data-types#boolean|boolean]] **isEnabled**()'' Deprecated since version 1.8.1; use Enabled property instead ---- ==== hasEnabledFlag ==== ''[[:data-types#boolean|boolean]] **hasEnabledFlag**()'' ---- ==== init ==== //[[:custom-classes#Extendable classes|Virtual function]], [[:custom-classes#Protected|Protected function]]// ''void **init**()'' ---- ==== onFinalize ==== //[[:custom-classes#Extendable classes|Virtual function]], [[:custom-classes#Protected|Protected function]]// ''void **onFinalize**(//isClearingLevel//)'' ^ Name ^ Type ^ Description ^ | //''isClearingLevel''// | ''[[:data-types#boolean|boolean]]'' | | ---- ==== onDestroy ==== //[[:custom-classes#Extendable classes|Virtual function]], [[:custom-classes#Protected|Protected function]]// ''void **onDestroy**(//isClearingLevel//)'' ^ Name ^ Type ^ Description ^ | //''isClearingLevel''// | ''[[:data-types#boolean|boolean]]'' | | ---- ==== onEnabled ==== //[[:custom-classes#Extendable classes|Virtual function]], [[:custom-classes#Protected|Protected function]]// ''void **onEnabled**()'' ---- ==== onDisabled ==== //[[:custom-classes#Extendable classes|Virtual function]], [[:custom-classes#Protected|Protected function]]// ''void **onDisabled**()'' ---- ==== onOwnerChanged ==== //[[:custom-classes#Extendable classes|Virtual function]], [[:custom-classes#Protected|Protected function]]// ''void **onOwnerChanged**(//previousOwner//, //newOwner//)'' ^ Name ^ Type ^ Description ^ | //''previousOwner''// | ''[[:api:game_object | GAME_OBJECT]]'' | | | //''newOwner''// | ''[[:api:game_object | GAME_OBJECT]]'' | | ---- ==== getComponentType ==== ''[[:data-types#component_type|component_type]] **getComponentType**()''