Files
fox-maze-schema/config-schema.json
T

200 lines
4.5 KiB
JSON
Raw Permalink Normal View History

{
"$schema": "fox-maze-config-schema-v1",
"version": 1,
"fields": {
"algorithm": {
"scope": "maze",
"type": "string",
"multi": true,
"label": "生成算法",
"default": "recursive-backtracker",
"enum": {
"recursive-backtracker": "递归回溯",
"prim": "Prim随机",
"kruskal": "Kruskal随机",
"recursive-division": "递归分治",
"dungeon": "地下城",
"ca": "洞穴",
"circular": "环形",
"polar-segment": "环形-极坐标线段",
"hex-recursive-backtracker": "六边形-递归回溯",
"hex-prim": "六边形-Prim",
"torus-rb": "环面-递归回溯",
"torus-prim": "环面-Prim",
"torus-kruskal": "环面-Kruskal",
"tri-rb": "三角-递归回溯",
"tri-prim": "三角-Prim",
"wilson": "Wilson随机游走",
"hunt-and-kill": "狩猎与杀戮",
"aldous-broder": "Aldous-Broder随机",
"true-prim": "真Prim权重"
}
},
"variant": {
"scope": "maze",
"type": "string",
"multi": true,
"label": "变体",
"default": null,
"nullable": true,
"enum": {
"dark": "暗黑",
"portal": "传送门",
"key": "钥匙",
"timed": "限时"
}
},
"weather": {
"scope": "maze",
"type": "string",
"multi": false,
"label": "天气",
"default": null,
"nullable": true,
"enum": {
"none": "无",
"rain": "雨",
"snow": "雪",
"leaves": "落叶",
"fireflies": "萤火虫",
"fog": "雾"
}
},
"bgm": {
"scope": "maze",
"type": "string",
"multi": false,
"label": "背景音乐",
"default": null,
"nullable": true
},
"theme": {
"scope": "maze",
"type": "string",
"multi": false,
"label": "视觉主题",
"default": null,
"nullable": true,
"enum": {
"deep-sea": "深海",
"forest": "森林",
"molten": "熔岩",
"sakura": "樱花",
"frost": "冰峰",
"galaxy": "星云"
}
},
"trapCount": {
"scope": "template",
"type": "number",
"label": "陷阱数",
"default": 6,
"min": 0,
"max": 50
},
"effectTrapCount": {
"scope": "template",
"type": "number",
"label": "效果陷阱数",
"default": 3,
"min": 0,
"max": 20
},
"spiritCount": {
"scope": "template",
"type": "number",
"label": "精灵数",
"default": 2,
"min": 0,
"max": 10
},
"spiritSpeed": {
"scope": "template",
"type": "number",
"label": "精灵速度",
"default": 2.0,
"min": 0.5,
"max": 5.0,
"step": 0.5
},
"spiritAggro": {
"scope": "template",
"type": "number",
"label": "精灵索敌距离",
"default": 4,
"min": 0,
"max": 10
},
"battleTypes": {
"scope": "template",
"type": "string",
"multi": true,
"all": true,
"label": "战斗题型",
"default": ["choice", "fill", "spell", "match", "rush", "scramble"],
"enum": {
"choice": "选择",
"fill": "填空",
"spell": "拼写",
"match": "匹配",
"rush": "速答",
"scramble": "拼词"
}
},
"wordDifficulty": {
"scope": "template",
"type": "number",
"label": "单词难度",
"default": 3,
"min": 1,
"max": 5
},
"lives": {
"scope": "template",
"type": "number",
"label": "生命值",
"default": 3,
"min": 1,
"max": 10
},
"rush": {
"scope": "template",
"type": "object",
"label": "Rush模式",
"default": null,
"nullable": true,
"children": {
"timeSec": {
"type": "number",
"label": "总时长 (秒)",
"default": 30,
"min": 10,
"max": 120
},
"questionTimeSec": {
"type": "number",
"label": "每题时限 (秒)",
"default": 3,
"min": 1,
"max": 30
},
"accuracy": {
"type": "number",
"label": "正确率要求",
"default": 0.7,
"min": 0.1,
"max": 1.0,
"step": 0.05
},
"minTotal": {
"type": "number",
"label": "最低题数",
"default": 3,
"min": 1,
"max": 20
}
}
}
}
}