改动说明 - 实现内容加载器并支持 res:///user:// 路径解析与 JSON 枚举解析:scripts/Core/ContentRegistry.cs - 新增 .tres 资源定义接口与样例资源类(学科定义):scripts/Core/ContentResources.cs - 默认注册资源/JSON 数据源,启动时自动合并进内容库:scripts/Core/GameSession.cs - 样例 .tres 与 JSON 内容定义:resources/definitions/discipline_biology.tres, resources/definitions/disciplines.json, resources/definitions/archetypes.json - 当前 .tres 走“扁平字段 + RuleIds”,数值型 Modifier 更适合先用 JSON 落地,后续可以把更多字段迁入资源类。 - JSON 采用与 Models 定义一致的结构(DefinitionHeader/LocalizedText/ModifierBundle),便于后续扩展。
69 lines
1.9 KiB
JSON
69 lines
1.9 KiB
JSON
[
|
|
{
|
|
"Header": {
|
|
"Id": "core:discipline_economics",
|
|
"Name": {
|
|
"Key": "discipline.economics.name",
|
|
"Fallback": "Economics"
|
|
},
|
|
"Description": {
|
|
"Key": "discipline.economics.desc",
|
|
"Fallback": "Money drives everything; interest becomes a core loop."
|
|
},
|
|
"Tags": [ "discipline" ]
|
|
},
|
|
"Buff": {
|
|
"Name": {
|
|
"Key": "buff.capital_flow.name",
|
|
"Fallback": "Capital Flow"
|
|
},
|
|
"Description": {
|
|
"Key": "buff.capital_flow.desc",
|
|
"Fallback": "Idle funds generate interest each turn."
|
|
},
|
|
"Modifiers": {
|
|
"ResourceModifiers": [
|
|
{ "Type": "Money", "Add": 0, "Multiplier": 1.0 }
|
|
],
|
|
"RuleIds": [ "rule:discipline_economics_interest" ]
|
|
}
|
|
},
|
|
"RolePoolIds": [ "core:role_surveyor", "core:role_orator" ],
|
|
"ItemPoolIds": [ "core:item_bloomberg_terminal" ],
|
|
"TaskKeywordIds": [ "task_keyword_finance" ]
|
|
},
|
|
{
|
|
"Header": {
|
|
"Id": "core:discipline_computer",
|
|
"Name": {
|
|
"Key": "discipline.computer.name",
|
|
"Fallback": "Computer Science"
|
|
},
|
|
"Description": {
|
|
"Key": "discipline.computer.desc",
|
|
"Fallback": "Compute-heavy discipline with strong tech output."
|
|
},
|
|
"Tags": [ "discipline" ]
|
|
},
|
|
"Buff": {
|
|
"Name": {
|
|
"Key": "buff.overclock.name",
|
|
"Fallback": "Overclock"
|
|
},
|
|
"Description": {
|
|
"Key": "buff.overclock.desc",
|
|
"Fallback": "Server power is amplified for AI tasks."
|
|
},
|
|
"Modifiers": {
|
|
"AttributeModifiers": [
|
|
{ "Type": "Engineering", "Add": 5, "Multiplier": 1.05 }
|
|
],
|
|
"RuleIds": [ "rule:discipline_computer_overclock" ]
|
|
}
|
|
},
|
|
"RolePoolIds": [ "core:role_geek", "core:role_coder" ],
|
|
"ItemPoolIds": [ "core:item_rtx_cluster" ],
|
|
"TaskKeywordIds": [ "task_keyword_ai" ]
|
|
}
|
|
]
|