====== BUILDING_FUNCTION_MARKET ====== **Category**: Asset Parent class: [[preview:api:building_function_workplace|BUILDING_FUNCTION_WORKPLACE]]\\ [[preview:assets:building_function#building_function_market| List of BUILDING_FUNCTION_MARKET assets]] ===== Properties ===== ---- ==== TypeList ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[preview:data-types#list|list]]<[[preview:api:resource_type|RESOURCE_TYPE]]>'' * **Expected**: ''list of enum values'' ---- ==== SlotCount ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[preview:data-types#integer_and_unsigned_integer|integer_and_unsigned_integer]]'' * **Expected**: ''integer value'' * **Default value**: ''1'' ---- ==== CapacityMultiplier ==== //[[:annotations#serialized|Serialized]]// Used only if [[api:building_function_market#IsOverrideCapacity|IsOverrideCapacity]] is set to ''false'' * **Type**: ''[[preview:data-types#integer_and_unsigned_integer|integer_and_unsigned_integer]]'' * **Expected**: ''integer value'' * **Default value**: ''20'' ---- ==== IsOverrideCapacity ==== //[[:annotations#serialized|Serialized]]// If set to ''true'', the market's resource capacity will be equal to [[api:building_function_market#CapacityPerSlot|CapacityPerSlot]]. If set to ''false'', it will be equal to the owning building part's [[api:building_part#VillagerCapacity|VillagerCapacity]] multiplied by [[api:building_function_market#CapacityMultiplier|CapacityMultiplier]] * **Type**: ''[[preview:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''false'' ---- ==== CapacityPerSlot ==== //[[:annotations#serialized|Serialized]]// Used only if [[api:building_function_market#IsOverrideCapacity|IsOverrideCapacity]] is set to ''true'' * **Type**: ''[[preview:data-types#integer_and_unsigned_integer|integer_and_unsigned_integer]]'' * **Expected**: ''integer value'' * **Default value**: ''20'' ---- ==== SortOrder ==== //[[:annotations#serialized|Serialized]]// Defines the placement of this market in the market window (the lower ''SortOrder'' is, the higher the market will be in the market list) * **Type**: ''[[preview:data-types#integer_and_unsigned_integer|integer_and_unsigned_integer]]'' * **Expected**: ''integer value'' * **Default value**: ''1000''