User Tools

Site Tools


preview:api:resource

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
preview:api:resource [2019/10/02 18:39] maximepreview:api:resource [2022/10/05 09:16] – [ConsumptionBehaviorOverride] maxime
Line 2: Line 2:
  
 **Category**: Asset **Category**: Asset
 +
 +Parent class:  [[preview:api:asset|ASSET]]\\
 +Inherited by [[preview:api:blueprint|BLUEPRINT]]
 +
  
  
Line 11: Line 15:
  
 ==== ResourceName ==== ==== ResourceName ====
-  * **Type**: ''String''+//[[:annotations#serialized|Serialized]]// 
 + 
 +  * **Type**: ''string'' 
 +  * **Expected**: ''string value'' 
 + 
 +---- 
 + 
 +==== OrderId ==== 
 +//[[:annotations#serialized|Serialized]]// 
 + 
 +  * **Type**: ''integer'' 
 +  * **Expected**: ''integer value'' 
 +  * **Default value**: ''0''
  
 ---- ----
  
 ==== Icon ==== ==== Icon ====
-  * **Type**: ''[[preview:api:texture|TEXTURE]]'' +//[[:annotations#serialized|Serialized]]// 
-  * **Expected**: ''Asset ID''+ 
 +  * **Type**: ''[[preview:api:atlas_cell|ATLAS_CELL]]'' 
 +  * **Expected**: ''asset ID''
  
 ---- ----
  
 ==== ResourceTypeList ==== ==== ResourceTypeList ====
-See [[api:resource_type|RESOURCE_TYPE]] for the list of core resource types +//[[:annotations#serialized|Serialized]]// 
-  * **Type**: ''List<String>''+ 
 +  * **Type**: ''list<[[preview:api:resource_type|RESOURCE_TYPE]]>'' 
 +  * **Expected**: ''list of enum values''
  
 ---- ----
  
 ==== ResourceLayoutType ==== ==== ResourceLayoutType ====
 +//[[:annotations#serialized|Serialized]]//
 +
   * **Type**: ''[[preview:api:resource_layout_type|RESOURCE_LAYOUT_TYPE]]''   * **Type**: ''[[preview:api:resource_layout_type|RESOURCE_LAYOUT_TYPE]]''
-  * **Expected**: ''String Enum Value'' +  * **Expected**: ''enum value'' 
-  * **Default value**: ''CRATES''+  * **Default value**: ''RESOURCE_LAYOUT_TYPE.CRATES''
  
 ---- ----
  
-==== IsTradable ==== +==== IsUnique ==== 
-  * **Type**''Boolean'' +//[[:annotations#serialized|Serialized]]//
-  * **Default value**: ''true''+
  
----- +  * **Type**: ''boolean'' 
- +  * **Expected**: ''boolean value'' 
-==== FillnessPerc ==== +  * **Default value**: ''false''
-  * **Type**: ''Float'' +
-  * **Default value**: ''1.0f''+
  
 ---- ----
  
-==== SellingPrice ==== +==== IsTradable ==== 
-  * **Type**: ''Float'' +//[[:annotations#serialized|Serialized]]// 
-  * **Default value**: ''1.0f''+ 
 +  * **Type**: ''boolean'' 
 +  * **Expected**: ''boolean value'' 
 +  * **Default value**: ''true''
  
 ---- ----
  
-==== BuyingPrice ==== +==== TradeBuyingPrice ==== 
-  * **Type**: ''Float'' +//[[:annotations#serialized|Serialized]]// 
-  * **Default value**: ''1.0f''+ 
 +  * **Type**: ''[[preview:api:resource_collection_value|RESOURCE_COLLECTION_VALUE]]'' 
 +  * **Can also be built from**: ''list<[[preview:api:resource_quantity_pair|RESOURCE_QUANTITY_PAIR]]>'' 
 +  * **Expected**: ''RESOURCE_COLLECTION_VALUE value'' or ''list of RESOURCE_QUANTITY_PAIR values'' 
 +  * **Default value**: ''nil''
  
 ---- ----
  
-==== VillagerBuyingPrice ==== +==== TradeSellingPrice ==== 
-  * **Type**: ''[[preview:api:resource_quantity_pair|RESOURCE_QUANTITY_PAIR]]''+//[[:annotations#serialized|Serialized]]// 
 + 
 +  * **Type**: ''[[preview:api:resource_collection_value|RESOURCE_COLLECTION_VALUE]]'' 
 +  * **Can also be built from**: ''list<[[preview:api:resource_quantity_pair|RESOURCE_QUANTITY_PAIR]]>'' 
 +  * **Expected**: ''RESOURCE_COLLECTION_VALUE value'' or ''list of RESOURCE_QUANTITY_PAIR values''
   * **Default value**: ''nil''   * **Default value**: ''nil''
  
Line 65: Line 95:
  
 ==== CanGoNegative ==== ==== CanGoNegative ====
-  * **Type**: ''Boolean''+//[[:annotations#serialized|Serialized]]// 
 + 
 +  * **Type**: ''boolean'' 
 +  * **Expected**: ''boolean value''
   * **Default value**: ''false''   * **Default value**: ''false''
  
Line 71: Line 104:
  
 ==== DisplayInInventory ==== ==== DisplayInInventory ====
-  * **Type**: ''Boolean''+//[[:annotations#serialized|Serialized]]// 
 + 
 +  * **Type**: ''boolean'' 
 +  * **Expected**: ''boolean value''
   * **Default value**: ''true''   * **Default value**: ''true''
  
Line 77: Line 113:
  
 ==== DisplayInToolbar ==== ==== DisplayInToolbar ====
-  * **Type**: ''Boolean''+//[[:annotations#serialized|Serialized]]// 
 + 
 +  * **Type**: ''boolean'' 
 +  * **Expected**: ''boolean value''
   * **Default value**: ''false''   * **Default value**: ''false''
 +
 +----
 +
 +==== DisplayGizmo ====
 +//[[:annotations#serialized|Serialized]]//
 +
 +  * **Type**: ''boolean''
 +  * **Expected**: ''boolean value''
 +  * **Default value**: ''true''
  
 ---- ----
  
 ==== DepositSoundEvent ==== ==== DepositSoundEvent ====
-  * **Type**: ''String''+//[[:annotations#serialized|Serialized]]// 
 + 
 +  * **Type**: ''string'' 
 +  * **Expected**: ''string value''
  
 ---- ----
  
 ==== GatheringSoundEvent ==== ==== GatheringSoundEvent ====
-  * **Type**: ''String''+//[[:annotations#serialized|Serialized]]// 
 + 
 +  * **Type**: ''string'' 
 +  * **Expected**: ''string value''
  
 ---- ----
  
 ==== PlantingSoundEvent ==== ==== PlantingSoundEvent ====
-  * **Type**: ''String''+//[[:annotations#serialized|Serialized]]// 
 + 
 +  * **Type**: ''string'' 
 +  * **Expected**: ''string value''
  
 ---- ----
  
 ==== ConsumptionBehaviorOverride ==== ==== ConsumptionBehaviorOverride ====
 +//[[:annotations#serialized|Serialized]]//
 +
 +The behavior tree provided here must have some variables:
 +  * ''AgentData'' (''[[preview:api:BEHAVIOR_TREE_DATA_AGENT|BEHAVIOR_TREE_DATA_AGENT]]'')
 +  * ''ConsumptionData'' (''[[preview:api:BEHAVIOR_TREE_DATA_RESOURCE_CONSUMPTION|BEHAVIOR_TREE_DATA_RESOURCE_CONSUMPTION]]'')
 +  * ''NeedToFill'' (''[[preview:api:BEHAVIOR_TREE_DATA_AGENT_NEED|BEHAVIOR_TREE_DATA_AGENT_NEED]]'')
 +  * ''HappinessFactor'' (''[[preview:api:BEHAVIOR_TREE_DATA_HAPPINESS_FACTOR|BEHAVIOR_TREE_DATA_HAPPINESS_FACTOR]]'', optional)
 +
   * **Type**: ''[[preview:api:behavior_tree|BEHAVIOR_TREE]]''   * **Type**: ''[[preview:api:behavior_tree|BEHAVIOR_TREE]]''
-  * **Expected**: ''Asset ID''+  * **Expected**: ''asset ID''
   * **Default value**: ''nil''   * **Default value**: ''nil''
  
Line 105: Line 170:
  
 ==== ResourceVisualPrefab ==== ==== ResourceVisualPrefab ====
 +//[[:annotations#serialized|Serialized]]//
 +
   * **Type**: ''[[preview:api:prefab|PREFAB]]''   * **Type**: ''[[preview:api:prefab|PREFAB]]''
-  * **Expected**: ''Asset ID''+  * **Expected**: ''asset ID'' 
 +  * **Default value**: ''nil'' 
 + 
 +---- 
 + 
 +==== IndividualResourceVisualPrefab ==== 
 +//[[:annotations#serialized|Serialized]]// 
 + 
 +  * **Type**: ''[[preview:api:prefab|PREFAB]]'' 
 +  * **Expected**: ''asset ID''
   * **Default value**: ''nil''   * **Default value**: ''nil''
  
Line 112: Line 188:
  
 ==== IsOnWater ==== ==== IsOnWater ====
-  * **Type**: ''Boolean''+//[[:annotations#serialized|Serialized]]// 
 + 
 +  * **Type**: ''boolean'' 
 +  * **Expected**: ''boolean value''
   * **Default value**: ''false''   * **Default value**: ''false''
  
  
preview/api/resource.txt · Last modified: 2023/12/12 12:16 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki