====== COMP_RESOURCE_STOCKPILE ====== **Category**: Component Parent class: [[:api:component | COMPONENT]]\\ ===== Properties ===== ---- ==== ResourceLayoutTypeList ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#list|list]]<[[:api:resource_layout_type | RESOURCE_LAYOUT_TYPE]]>'' * **Expected**: ''list of enum values'' ---- ==== OptionalAllowedResourceList ==== //[[:annotations#serialized|Serialized]]// Allowing only 1 resource on a stockpile will allow the resource to be split between all resource stockpile with this unique resource associated. * **Type**: ''[[:data-types#list|list]]<[[:api:resource | RESOURCE]]>'' * **Expected**: ''list of asset IDs'' ---- ==== OptionalAllowedResourceTypeList ==== //[[:annotations#serialized|Serialized]]// If not left empty, the stockpile will only display resource types included in this list * **Type**: ''[[:data-types#list|list]]<[[:api:resource_type | RESOURCE_TYPE]]>'' * **Expected**: ''list of enum values'' ---- ==== LocatorPrefix ==== //[[:annotations#serialized|Serialized]]// Optional, allows to use only child game objects whose name starts with this prefix as visual locators. If empty, all child game objects will be used as locators. * **Type**: ''[[:data-types#string|string]]'' * **Expected**: ''string value'' ---- ==== DefaultResourceVisual ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:prefab | PREFAB]]'' * **Expected**: ''asset ID'' ---- ==== ResourceStockpileVisualMode ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:resource_stockpile_visual_mode | RESOURCE_STOCKPILE_VISUAL_MODE]]'' * **Expected**: ''enum value'' * **Default value**: ''RESOURCE_STOCKPILE_VISUAL_MODE.WAREHOUSE_SPAWN'' ---- ==== IsOnlyAccessibleToParentResourceDepot ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''true'' ---- ==== CanBeUsedForMultipleResource ==== //[[:annotations#serialized|Serialized]]// If checked, the stockpile will allow multiple resource to be stored on the same stockpile, as long as the resources match the filters above * **Type**: ''[[:data-types#boolean|boolean]]'' * **Expected**: ''boolean value'' * **Default value**: ''false'' ---- ==== DropoffLocator ==== //[[:annotations#serialized|Serialized]]// * **Type**: ''[[:api:game_object | GAME_OBJECT]]'' * **Expected**: ''GAME_OBJECT value'' * **Default value**: ''nil''