Skip to content

Commit 6b42357

Browse files
committed
Add pathing.schema.json
1 parent bfaf57c commit 6b42357

File tree

2 files changed

+171
-0
lines changed

2 files changed

+171
-0
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"cSpell.words": [
3+
"anemo",
34
"bettergi",
45
"Enkanomiya",
56
"esbuild",
@@ -11,9 +12,11 @@
1112
"lshift",
1213
"lwin",
1314
"movemapto",
15+
"nahida",
1416
"npmjs",
1517
"numlock",
1618
"pathing",
19+
"pyro",
1720
"rcontrol",
1821
"relogin",
1922
"rmenu",

schema/pathing.schema.json

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"definitions": {
4+
"position": {
5+
"type": "object",
6+
"properties": {
7+
"id": {
8+
"type": "number",
9+
"description": "ID"
10+
},
11+
"x": {
12+
"type": "number",
13+
"description": "X 坐标"
14+
},
15+
"y": {
16+
"type": "number",
17+
"description": "Y 坐标"
18+
},
19+
"point_ext_params": {},
20+
"type": {
21+
"anyOf": [
22+
{
23+
"type": "string",
24+
"enum": [
25+
"path",
26+
"target",
27+
"teleport",
28+
"orientation"
29+
]
30+
},
31+
{
32+
"type": "string"
33+
}
34+
],
35+
"description": "位置类型"
36+
},
37+
"move_mode": {
38+
"anyOf": [
39+
{
40+
"type": "string",
41+
"enum": [
42+
"walk",
43+
"run",
44+
"dash",
45+
"climb",
46+
"fly",
47+
"jump",
48+
"swim"
49+
]
50+
},
51+
{
52+
"type": "string"
53+
}
54+
],
55+
"description": "移动模式"
56+
},
57+
"action": {
58+
"anyOf": [
59+
{
60+
"type": "string",
61+
"enum": [
62+
"stop_flying",
63+
"force_tp",
64+
"nahida_collect",
65+
"pick_around",
66+
"fight",
67+
"up_down_grab_leaf",
68+
"hydro_collect",
69+
"electro_collect",
70+
"anemo_collect",
71+
"pyro_collect",
72+
"combat_script",
73+
"mining",
74+
"log_output",
75+
"fishing",
76+
"exit_and_relogin",
77+
"set_time"
78+
]
79+
},
80+
{
81+
"type": "string"
82+
}
83+
],
84+
"description": "动作名称"
85+
},
86+
"action_params": {
87+
"type": "string",
88+
"description": "动作参数"
89+
}
90+
},
91+
"required": [
92+
"x",
93+
"y"
94+
]
95+
}
96+
},
97+
"type": "object",
98+
"properties": {
99+
"info": {
100+
"type": "object",
101+
"properties": {
102+
"name": {
103+
"type": "string",
104+
"description": "名称"
105+
},
106+
"description": {
107+
"type": "string",
108+
"description": "描述"
109+
},
110+
"author": {
111+
"type": "string",
112+
"description": "作者"
113+
},
114+
"version": {
115+
"type": "string",
116+
"description": "版本号"
117+
},
118+
"bgi_version": {
119+
"type": "string",
120+
"description": "BetterGI 版本号"
121+
},
122+
"type": {
123+
"anyOf": [
124+
{
125+
"type": "string",
126+
"enum": [
127+
"collect",
128+
"mining",
129+
"farming"
130+
]
131+
},
132+
{
133+
"type": "string"
134+
}
135+
],
136+
"description": "路径类型"
137+
},
138+
"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+
}],
151+
"description": "地图名称",
152+
"default": "Teyvat"
153+
}
154+
},
155+
"required": [
156+
"name",
157+
"type"
158+
]
159+
},
160+
"positions": {
161+
"type": "array",
162+
"items": {
163+
"$ref": "#/definitions/position"
164+
},
165+
"description": "路径点"
166+
}
167+
}
168+
}

0 commit comments

Comments
 (0)