“模组:果树数据”的版本间的差异
跳到导航
跳到搜索
(→原始数据) 标签:移动版编辑 移动网页编辑 |
(→数据格式) 标签:移动版编辑 移动网页编辑 |
||
第9行: | 第9行: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | ! | + | ! 字段 |
− | ! | + | ! 效果 |
|- | |- | ||
| <samp>DisplayName</samp> | | <samp>DisplayName</samp> |
2024年9月10日 (二) 14:49的版本
← 模组:目录
此页面解释游戏是如何存储和解析果树数据
原始数据
果树数据存储在Content\Data\FruitTrees.xnb中
数据格式
字段 | 效果 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DisplayName | A tokenizable string for the tree's display name. This should return a display name without 'tree' (like Cherry for a cherry tree). This is used in UI messages like "Your <display name> tree wasn't able to grow last night". | ||||||||||||
Seasons | The seasons in which the fruit tree bears fruit. This consists of an array of season names (any combination of spring, summer, fall, or 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. |