Repository navigation
Expand file tree
/
Copy pathepisode.schema.json
More file actions
105 lines (105 loc) · 4.4 KB
/
Copy pathepisode.schema.json
File metadata and controls
105 lines (105 loc) · 4.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/empty-sekai/ournotes-player/main/schema/episode.schema.json",
"title": "Story episode (episode.json)",
"description": "One story episode: its command rows (non-default fields under their serialized names), texts per text field, the episode's sound, cue sheet and video rows, its asset closure, master data row and title. Only the keys the player reads are described. See docs/story-data-format.md.",
"type": "object",
"required": ["advId", "asset", "commandCount", "commands", "text", "sounds", "cuesheets", "videos", "resources", "master", "title"],
"properties": {
"advId": { "type": "integer", "minimum": 1 },
"asset": { "type": "string", "minLength": 1 },
"commandCount": { "type": "integer", "minimum": 0 },
"commands": { "type": "array", "items": { "$ref": "#/$defs/command" } },
"text": { "type": "object", "additionalProperties": { "$ref": "#/$defs/texts" } },
"sounds": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": { "_cueName": { "type": "string" }, "_soundCueSheetID": { "type": "integer" } }
}
},
"cuesheets": {
"type": "object",
"additionalProperties": {
"type": "object",
"required": ["_cueSheetName"],
"properties": { "_cueSheetName": { "type": "string", "minLength": 1 } }
}
},
"videos": { "type": "object", "additionalProperties": { "type": "object" } },
"resources": {
"type": "array",
"items": {
"type": "object",
"required": ["kind", "address", "present"],
"properties": {
"kind": { "type": "string", "minLength": 1 },
"address": { "type": "string", "minLength": 1 },
"present": { "type": "boolean" }
}
}
},
"master": {
"type": "object",
"required": ["_id", "_advEpisodeAsset", "_titleTextId", "_playbackMode"],
"properties": {
"_id": { "type": "integer", "minimum": 1 },
"_sheetName": { "type": "string" },
"_advEpisodeAsset": { "type": "string", "minLength": 1 },
"_titleTextId": { "type": "string" },
"_rubyTitleTextId": { "type": "string" },
"_playbackMode": { "enum": [0, 1] }
}
},
"title": { "anyOf": [{ "type": "null" }, { "$ref": "#/$defs/texts" }] }
},
"$defs": {
"texts": {
"type": "object",
"required": ["japanese", "english", "traditionalChinese", "simplifiedChinese", "korean"],
"properties": {
"japanese": { "type": ["string", "null"] },
"english": { "type": ["string", "null"] },
"traditionalChinese": { "type": ["string", "null"] },
"simplifiedChinese": { "type": ["string", "null"] },
"korean": { "type": ["string", "null"] }
}
},
"command": {
"type": "object",
"required": ["i", "cmd", "raw"],
"properties": {
"i": { "type": "integer" },
"cmd": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*$" },
"raw": { "type": "integer", "minimum": 0 },
"TargetName": { "type": "string" },
"TargetAssetName": { "type": "string" },
"TargetAssetIndex": { "type": "integer" },
"PositionType": { "type": "integer" },
"CameraDistance": { "type": "number" },
"Duration": { "type": "number" },
"DelaySeconds": { "type": "number" },
"IsNoWait": { "type": ["boolean", "integer"] },
"IgnoreData": { "type": ["boolean", "integer"] },
"IgnoreLipSync": { "type": ["boolean", "integer"] },
"Parameter1": { "type": "string" },
"Parameter2": { "type": "string" },
"Parameter3": { "type": "string" },
"Parameter4": { "type": "string" },
"TargetTextIDs": { "type": "array", "items": { "type": "string" } },
"TargetStatus": { "type": "integer" },
"AdvTextID": { "type": "string" },
"lines": { "$ref": "#/$defs/texts" },
"VoiceIDs": { "type": "array", "items": { "type": "integer" } },
"voiceCues": { "type": "array", "items": { "type": ["string", "null"] } },
"MotionName": { "type": "string" },
"ExpressionName": { "type": "string" },
"BgmID": { "type": "integer" },
"SeID": { "type": "integer" },
"Key": { "type": "string" },
"VideoID": { "type": "integer" },
"TargetChatID": { "type": "integer" }
}
}
}
}