“模组:果树数据”的版本间的差异
跳到导航
跳到搜索
(→数据格式) 标签:移动版编辑 移动网页编辑 |
(→数据格式) 标签:移动版编辑 移动网页编辑 |
||
第10行: | 第10行: | ||
|- | |- | ||
! 字段 | ! 字段 | ||
− | ! | + | ! 说明 |
|- | |- | ||
| <samp>DisplayName</samp> | | <samp>DisplayName</samp> | ||
第16行: | 第16行: | ||
|- | |- | ||
| <samp>Seasons</samp> | | <samp>Seasons</samp> | ||
− | | | + | | 果树能结出果实的季节。This consists of an array of season names (any combination of <samp>spring</samp>, <samp>summer</samp>, <samp>fall</samp>, <samp>winter</samp>) 。 |
'''Note:''' the previous '<samp>island</samp>' season value is no longer valid. Using <samp>summer</samp> is equivalent to how it worked before (since we now have [[#Custom location contexts|per-location seasons]]). | '''Note:''' the previous '<samp>island</samp>' season value is no longer valid. Using <samp>summer</samp> is equivalent to how it worked before (since we now have [[#Custom location contexts|per-location seasons]]). |
2024年9月10日 (二) 15:12的版本
← 模组:目录
此页面解释游戏是如何存储和解析果树数据
原始数据
果树数据存储在Content\Data\FruitTrees.xnb中
数据格式
字段 | 说明 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DisplayName | 这是个可标记字符串,用于放置树的名字。这应该返回一个不带“tree”的放置名(例如 Cherry 表示樱桃树)。这使用于 UI 信息中像 "Your <display name> tree wasn't able to grow last night". | ||||||||||||
Seasons | 果树能结出果实的季节。This consists of an array of season names (any combination of spring, summer, fall, winter)。
Note: the previous 'island' season value is no longer valid. Using summer is equivalent to how it worked before (since we now have per-location seasons). | ||||||||||||
Fruit | The fruit items to add to the tree each day while the tree is in-season. The first matching fruit (if any) is selected each day.
This consists of a list of models with these fields:
| ||||||||||||
Texture | The asset name for the texture under the game's Content folder. Use \ (or \\ in JSON) to separate name segments if needed. For example, vanilla fruit trees use TileSheets\fruitTrees. | ||||||||||||
TextureSpriteRow | The tree's row index in the Texture spritesheet (e.g. 0 for the first tree, 1 for the second tree, etc). | ||||||||||||
PlantableLocationRules | (Optional) The rules to decide which locations you can plant the sapling in, if applicable. The first matching rule is used. This can override location checks (e.g. crops being limited to the farm), but not built-in requirements like crops needing dirt.
This consists of a list of models with these fields:
| ||||||||||||
CustomFields | The custom fields for this entry. |