Files
nana-story/contracts/schema/player-view.schema.json
T
2026-07-28 12:51:00 +08:00

71 lines
1.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "PlayerView",
"type": "object",
"required": [
"storyId",
"nodeId",
"branchId",
"sceneId",
"sceneTitle",
"characterName",
"beats",
"suggestions",
"inventory",
"knowledge",
"promises",
"relationship",
"history",
"canContinue"
],
"properties": {
"storyId": {
"type": "string"
},
"nodeId": {
"type": "string"
},
"branchId": {
"type": "string"
},
"sceneId": {
"type": "string"
},
"sceneTitle": {
"type": "string"
},
"characterName": {
"type": "string"
},
"beats": {
"type": "array",
"items": {
"type": "object",
"required": ["id", "kind", "speaker", "text", "visual"]
}
},
"suggestions": {
"type": "array"
},
"inventory": {
"type": "array"
},
"knowledge": {
"type": "array"
},
"promises": {
"type": "array"
},
"relationship": {
"type": "object"
},
"history": {
"type": "array"
},
"canContinue": {
"type": "boolean"
}
},
"additionalProperties": false
}