====== BUILDING_FUNCTION_WORKPLACE ====== **[[:custom-classes#Extendable classes|Extendable]]**\\ **Category**: Asset Parent class: [[:api:building_function|BUILDING_FUNCTION]]\\ Inherited by: * [[:api:building_function_bailiff_office|BUILDING_FUNCTION_BAILIFF_OFFICE]] * [[:api:building_function_builder_workshop|BUILDING_FUNCTION_BUILDER_WORKSHOP]] * [[:api:building_function_church|BUILDING_FUNCTION_CHURCH]] * [[:api:building_function_crafting_workshop|BUILDING_FUNCTION_CRAFTING_WORKSHOP]] * [[:api:building_function_farm|BUILDING_FUNCTION_FARM]] * [[:api:building_function_fishing|BUILDING_FUNCTION_FISHING]] * [[:api:building_function_forester|BUILDING_FUNCTION_FORESTER]] * [[:api:building_function_kitchen|BUILDING_FUNCTION_KITCHEN]] * [[:api:building_function_livestock_farm|BUILDING_FUNCTION_LIVESTOCK_FARM]] * [[:api:building_function_market|BUILDING_FUNCTION_MARKET]] * [[:api:building_function_quarry|BUILDING_FUNCTION_QUARRY]] * [[:api:building_function_tax_office|BUILDING_FUNCTION_TAX_OFFICE]] * [[:api:building_function_training_ground|BUILDING_FUNCTION_TRAINING_GROUND]] * [[:api:building_function_treasury|BUILDING_FUNCTION_TREASURY]] * [[:api:building_function_warehouse|BUILDING_FUNCTION_WAREHOUSE]] [[:assets:building_function#building_function_workplace| List of BUILDING_FUNCTION_WORKPLACE assets]] ===== Properties ===== ---- ==== WorkerCapacity ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#integer_and_unsigned_integer|integer_and_unsigned_integer]]'' * **Expected**: ''integer value'' * **Default value**: ''1'' ---- ==== IsInfiniteCapacity ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''false'' ---- ==== WorkerRatioFromCapacity ==== //[[:annotations#serialized|Serialized]]// Will override worker capacity if the value is over 0. * **Type**: ''[[:data-types#float|float]]'' * **Expected**: ''float value'' * **Default value**: ''0.0f'' ---- ==== UpkeepPerWorker ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:resource_collection_value|RESOURCE_COLLECTION_VALUE]]'' * **Can also be built from**: ''[[:data-types#list|list]]<[[:api:resource_quantity_pair|RESOURCE_QUANTITY_PAIR]]>'' * **Expected**: ''RESOURCE_COLLECTION_VALUE value'' or ''list of RESOURCE_QUANTITY_PAIR values'' ---- ==== RelatedJob ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:association_job_behavior|ASSOCIATION_JOB_BEHAVIOR]]'' * **Expected**: ''ASSOCIATION_JOB_BEHAVIOR value'' ---- ==== IsPrivate ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''false'' ---- ==== CanAssignWorkerAutomatically ==== //[[:annotations#serialized|Serialized]]// If false, monument like the Monastery, can't automatically assign worker to this workplace * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''true'' ---- ==== HasResourceDepot ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''true'' ---- ==== IsPausable ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''true'' ---- ==== RandomWorkstationReservation ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''false'' ---- ==== ShowProgressBar ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''true'' ---- ==== ProductionCycleDurationInSec ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#float|float]]'' * **Expected**: ''float value'' * **Default value**: ''20.0f'' ---- ==== WorkCycleNeededToProduceOnce ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#integer_and_unsigned_integer|integer_and_unsigned_integer]]'' * **Expected**: ''integer value'' * **Default value**: ''1'' ---- ==== InputInventoryCapacity ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:resource_collection_value|RESOURCE_COLLECTION_VALUE]]'' * **Can also be built from**: ''[[:data-types#list|list]]<[[:api:resource_quantity_pair|RESOURCE_QUANTITY_PAIR]]>'' * **Expected**: ''RESOURCE_COLLECTION_VALUE value'' or ''list of RESOURCE_QUANTITY_PAIR values'' ---- ==== ResourceListNeeded ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:resource_collection_value|RESOURCE_COLLECTION_VALUE]]'' * **Can also be built from**: ''[[:data-types#list|list]]<[[:api:resource_quantity_pair|RESOURCE_QUANTITY_PAIR]]>'' * **Expected**: ''RESOURCE_COLLECTION_VALUE value'' or ''list of RESOURCE_QUANTITY_PAIR values'' ---- ==== ResourceProduced ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:resource_collection_value|RESOURCE_COLLECTION_VALUE]]'' * **Can also be built from**: ''[[:data-types#list|list]]<[[:api:resource_quantity_pair|RESOURCE_QUANTITY_PAIR]]>'' * **Expected**: ''RESOURCE_COLLECTION_VALUE value'' or ''list of RESOURCE_QUANTITY_PAIR values'' ---- ==== DesirabilityLayer ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:desirability|DESIRABILITY]]'' * **Expected**: ''asset ID'' * **Default value**: ''nil'' ---- ==== AssetNoZoneNotification ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:notification|NOTIFICATION]]'' * **Expected**: ''asset ID'' * **Default value**: ''nil'' ---- ==== AssetNoResourceInZoneNotification ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:notification|NOTIFICATION]]'' * **Expected**: ''asset ID'' * **Default value**: ''nil''