Skip to content

Commit 8e9622f

Browse files
committed
Update pathing.schema.json
1 parent 6b42357 commit 8e9622f

File tree

1 file changed

+111
-13
lines changed

1 file changed

+111
-13
lines changed

schema/pathing.schema.json

Lines changed: 111 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,83 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"definitions": {
4+
"misidentification": {
5+
"type": "object",
6+
"properties": {
7+
"type": {
8+
"type": "array",
9+
"items": {
10+
"anyOf": [
11+
{
12+
"type": "string",
13+
"enum": [
14+
"pathTooFar",
15+
"unrecognized"
16+
]
17+
},
18+
{
19+
"type": "string"
20+
}
21+
]
22+
},
23+
"description": "何时处理",
24+
"default": [
25+
"unrecognized"
26+
]
27+
},
28+
"handling_mode": {
29+
"anyOf": [
30+
{
31+
"type": "string",
32+
"enum": [
33+
"previousDetectedPoint",
34+
"mapRecognition"
35+
]
36+
},
37+
{
38+
"type": "string"
39+
}
40+
],
41+
"description": "处理方式",
42+
"default": "previousDetectedPoint"
43+
},
44+
"arrival_time": {
45+
"type": "number",
46+
"description": "预估的时间",
47+
"default": 0
48+
}
49+
},
50+
"description": "异常识别处理"
51+
},
52+
"point_ext_params": {
53+
"type": "object",
54+
"properties": {
55+
"misidentification": {
56+
"$ref": "#/definitions/misidentification"
57+
},
58+
"description": {
59+
"type": "string",
60+
"description": "描述"
61+
},
62+
"monster_tag": {
63+
"anyOf": [
64+
{
65+
"type": "string",
66+
"enum": [
67+
"normal",
68+
"elite",
69+
"legendary"
70+
]
71+
},
72+
{
73+
"type": "string"
74+
}
75+
],
76+
"description": "怪物标识"
77+
}
78+
},
79+
"description": "扩展参数"
80+
},
481
"position": {
582
"type": "object",
683
"properties": {
@@ -16,7 +93,9 @@
1693
"type": "number",
1794
"description": "Y 坐标"
1895
},
19-
"point_ext_params": {},
96+
"point_ext_params": {
97+
"$ref": "#/definitions/point_ext_params"
98+
},
2099
"type": {
21100
"anyOf": [
22101
{
@@ -86,6 +165,10 @@
86165
"action_params": {
87166
"type": "string",
88167
"description": "动作参数"
168+
},
169+
"locked": {
170+
"type": "boolean",
171+
"description": "是否锁定"
89172
}
90173
},
91174
"required": [
@@ -136,20 +219,35 @@
136219
"description": "路径类型"
137220
},
138221
"map_name": {
139-
"anyOf": [{
140-
"type": "string",
141-
"enum": [
142-
"Teyvat",
143-
"TheChasm",
144-
"Enkanomiya",
145-
"SeaOfBygoneEras",
146-
"AncientSacredMountain"
147-
]
148-
}, {
149-
"type": "string"
150-
}],
222+
"anyOf": [
223+
{
224+
"type": "string",
225+
"enum": [
226+
"Teyvat",
227+
"TheChasm",
228+
"Enkanomiya",
229+
"SeaOfBygoneEras",
230+
"AncientSacredMountain"
231+
]
232+
},
233+
{
234+
"type": "string"
235+
}
236+
],
151237
"description": "地图名称",
152238
"default": "Teyvat"
239+
},
240+
"last_modified_time": {
241+
"type": "number",
242+
"description": "最后修改时间"
243+
},
244+
"tags": {
245+
"type": "array",
246+
"items": {
247+
"type": "string"
248+
},
249+
"description": "标签",
250+
"default": []
153251
}
154252
},
155253
"required": [

0 commit comments

Comments
 (0)