-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
156 lines (156 loc) · 3.67 KB
/
schema.json
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"$id": "https://github.com/logue/symbol-art-parser/raw/master/schema.json",
"$schema": "http://json-schema.org/draft/2020-12/schema",
"title": "Symbol Art JSON",
"description": "Phantasy Star Online 2 Symbol Art Json file schema.",
"type": "object",
"properties": {
"authorId": {
"title": "Symbol art author's SEGA Account ID. Not compatible between JP accounts and global accounts.",
"type": "integer"
},
"name": {
"title": "Symbol art name.",
"type": "string"
},
"sound": {
"title": "Set play effect sound id when symbol art displayed.",
"type": "integer",
"minimum": 0,
"maximum": 12
},
"size": {
"title": "Size of Symbol Art",
"type": "object",
"additionalProperties": false,
"properties": {
"height": {
"type": "integer",
"minimum": 64,
"maximum": 128
},
"width": {
"type": "integer",
"minimum": 64,
"maximum": 193
}
},
"required": ["height", "width"]
},
"layers": {
"title": "Layer",
"type": "array",
"description": "Layers",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"symbol": {
"title": "Symbol id",
"type": "integer",
"minimum": 1,
"maximum": 754
},
"isVisible": {
"title": "Visibility Flag",
"type": "boolean"
},
"position": {
"title": "Draw Position",
"$ref": "#/$defs/position"
},
"r": {
"title": "Red",
"type": "integer",
"minimum": 0,
"maximum": 64
},
"g": {
"title": "Green",
"type": "integer",
"minimum": 0,
"maximum": 64
},
"b": {
"title": "Blue",
"type": "integer",
"minimum": 0,
"maximum": 64
},
"a": {
"title": "Alpha",
"type": "integer",
"minimum": 0,
"maximum": 7
},
"x": {
"type": "integer",
"minimum": 0,
"maximum": 64
},
"y": {
"type": "integer",
"minimum": 0,
"maximum": 64
},
"z": {
"type": "integer",
"minimum": 0,
"maximum": 64
}
},
"required": [
"symbol",
"isVisible",
"position",
"r",
"g",
"b",
"a",
"x",
"y",
"z"
]
}
}
},
"required": ["authorId", "layers", "name", "size", "sound"],
"$defs": {
"position": {
"title": "Symbol parts drawing position.",
"type": "object",
"additionalProperties": false,
"properties": {
"topLeft": {
"$ref": "#/$defs/axis"
},
"bottomLeft": {
"$ref": "#/$defs/axis"
},
"topRight": {
"$ref": "#/$defs/axis"
},
"bottomRight": {
"$ref": "#/$defs/axis"
}
},
"required": ["bottomLeft", "bottomRight", "topLeft", "topRight"]
},
"axis": {
"title": "Axis",
"type": "object",
"additionalProperties": false,
"properties": {
"x": {
"description": "X (Horizontal) coordinates",
"type": "integer"
},
"y": {
"description": "Y (Vertical) coordinates",
"type": "integer"
}
},
"required": ["x", "y"]
}
}
}