api:building_function_workplace
Table of Contents
BUILDING_FUNCTION_WORKPLACE
Properties
WorkerCapacity
IsInfiniteCapacity
WorkerRatioFromCapacity
Will override worker capacity if the value is over 0.
- Type:
float - Expected:
float value - Default value:
0.0f
OutputCapacity
StorageRatioFromCapacity
Will override output capacity if the value is over 0.
- Type:
float - Expected:
float value - Default value:
0.0f
UpkeepPerWorker
- Can also be built from:
list< RESOURCE_QUANTITY_PAIR> - Expected:
RESOURCE_COLLECTION_VALUE valueorlist of RESOURCE_QUANTITY_PAIR values
RelatedJob
IsPrivate
CanAssignWorkerAutomatically
If false, monument like the Monastery, can't automatically assign worker to this workplace
- Type:
boolean - Expected:
boolean value - Default value:
true
HasResourceDepot
IsPausable
RandomWorkstationReservation
ShowProgressBar
ProductionCycleDurationInSec
WorkCycleNeededToProduceOnce
AssetWorkplaceRecipeList
InputInventoryCapacityMultiplier
This will be multiplied by the needed resources quantities to determine input inventory's capacity.
For gathering workplaces, should set at 0, since they have no input inventory.
- Expected:
integer value - Default value:
10
DesirabilityLayer
AssetNoZoneNotification
AssetNoResourceInZoneNotification
OutputOnlyKeyOverride
InputOutputKeyOverride
IsDisplayInputResourcesInDescription
Display input resources in description if workplace has input resources.
- Type:
boolean - Expected:
boolean value - Default value:
true
AgentWorkingActivityMessageOverride
If set, will replace the default working activity message used in the behavior
- Expected:
WORK_AGENT_ACTIVITY_MESSAGE value - Default value:
nil
DeprecatedResourceListNeeded
Deprecated since version 1.12; use WORKPLACE_RECIPE instead
- Can also be built from:
list< RESOURCE_QUANTITY_PAIR> - Expected:
RESOURCE_COLLECTION_VALUE valueorlist of RESOURCE_QUANTITY_PAIR values - Default value:
nil
DeprecatedResourceProduced
Deprecated since version 1.12; use WORKPLACE_RECIPE instead
- Can also be built from:
list< RESOURCE_QUANTITY_PAIR> - Expected:
RESOURCE_COLLECTION_VALUE valueorlist of RESOURCE_QUANTITY_PAIR values - Default value:
nil
api/building_function_workplace.txt · Last modified: 2026/10/09 13:20 by 127.0.0.1
