Skip to content

Commit 05c756f

Browse files
refactor: 适配回调协议
1 parent de3adb1 commit 05c756f

19 files changed

Lines changed: 854 additions & 298 deletions

assets/resource/pipeline/刷1-1.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@
364364
"[JumpBack]重新连接",
365365
"狗粮不满足出征要求"
366366
],
367-
"focus": "[color:red]新获得舰船不满足出征要求,结束任务[/color]"
367+
"focus": {
368+
"Node.Recognition.Succeeded": "<span style=\"color: red;\">新获得舰船不满足出征要求,结束任务</span>"
369+
}
368370
},
369371
"换人大破检测2": {
370372
"recognition": "ColorMatch",
@@ -389,7 +391,9 @@
389391
"[JumpBack]重新连接",
390392
"狗粮不满足出征要求"
391393
],
392-
"focus": "[color:red]新获得舰船不满足出征要求,结束任务[/color]"
394+
"focus": {
395+
"Node.Recognition.Succeeded": "<span style=\"color: red;\">新获得舰船不满足出征要求,结束任务</span>"
396+
}
393397
},
394398
"狗粮不满足出征要求": {
395399
"recognition": "TemplateMatch",
@@ -425,7 +429,9 @@
425429
"[JumpBack]重新连接",
426430
"退出狗粮"
427431
],
428-
"focus": "[color:red]船舱已满[/color]"
432+
"focus": {
433+
"Node.Recognition.Succeeded": "<span style=\"color: red;\">船舱已满</span>"
434+
}
429435
},
430436
"退出狗粮": {
431437
"recognition": "TemplateMatch",
@@ -550,6 +556,8 @@
550556
"[JumpBack]重新连接",
551557
"任务结束"
552558
],
553-
"focus": "[color:red]今日捞船已达上限[/color]"
559+
"focus": {
560+
"Node.Recognition.Succeeded": "<span style=\"color: red;\">今日捞船已达上限</span>"
561+
}
554562
}
555563
}

assets/resource/pipeline/建造.json

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@
111111
"建造解装",
112112
"建造获得舰船"
113113
],
114-
"focus": "点击建造完成"
114+
"focus": {
115+
"Node.Recognition.Succeeded": "{name}"
116+
}
115117
},
116118
"建造解装": {
117119
"recognition": "OCR",
@@ -127,7 +129,9 @@
127129
"[JumpBack]重新连接",
128130
"建造结束退出"
129131
],
130-
"focus": "[color:red]船舱已满[/color]",
132+
"focus": {
133+
"Node.Recognition.Succeeded": "<span style=\"color: red;\">船舱已满</span>"
134+
},
131135
"enabled": false
132136
},
133137
"建造结束退出": {
@@ -195,7 +199,9 @@
195199
"[JumpBack]重新连接",
196200
"建造调整公式"
197201
],
198-
"focus": "点击开始建造"
202+
"focus": {
203+
"Node.Recognition.Succeeded": "{name}"
204+
}
199205
},
200206
"点击快速建造": {
201207
"recognition": "OCR",
@@ -212,7 +218,9 @@
212218
"点击建造完成"
213219
],
214220
"enabled": false,
215-
"focus": "使用快速建造工具"
221+
"focus": {
222+
"Node.Recognition.Succeeded": "使用快速建造工具"
223+
}
216224
},
217225
"建造调整公式": {
218226
"recognition": "OCR",
@@ -682,7 +690,9 @@
682690
"批量建造MAX"
683691
],
684692
"enabled": false,
685-
"focus": "开始批量建造"
693+
"focus": {
694+
"Node.Recognition.Succeeded": "开始批量建造"
695+
}
686696
},
687697
"批量建造MAX": {
688698
"recognition": "OCR",
@@ -766,6 +776,8 @@
766776
"[JumpBack]退出",
767777
"无动作结束"
768778
],
769-
"focus": "开始建造"
779+
"focus": {
780+
"Node.Recognition.Succeeded": "开始建造"
781+
}
770782
}
771783
}

assets/resource/pipeline/戰役.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@
127127
"战役快速修理"
128128
],
129129
"connected": true,
130-
"focus": "[color:red]检测到大破舰船[/color]"
130+
"focus": {
131+
"Node.Recognition.Succeeded": "<span style=\"color: red;\">检测到大破舰船</span>"
132+
}
131133
},
132134
"战役修理检测中破": {
133135
"recognition": "ColorMatch",
@@ -152,7 +154,9 @@
152154
"战役快速修理"
153155
],
154156
"connected": true,
155-
"focus": "[color:red]检测到中破舰船[/color]"
157+
"focus": {
158+
"Node.Recognition.Succeeded": "<span style=\"color: red;\">检测到中破舰船</span>"
159+
}
156160
},
157161
"战役快速修理": {
158162
"recognition": "OCR",
@@ -231,7 +235,9 @@
231235
"[JumpBack]节点1追击"
232236
],
233237
"timeout": 60000,
234-
"focus": "开始出征"
238+
"focus": {
239+
"Node.Recognition.Succeeded": "开始出征"
240+
}
235241
},
236242
"战役开始战斗": {
237243
"recognition": "TemplateMatch",
@@ -317,7 +323,9 @@
317323
"[JumpBack]重新连接",
318324
"任务结束"
319325
],
320-
"focus": "[color:red]战役次数已达上限[/color]"
326+
"focus": {
327+
"Node.Recognition.Succeeded": "<span style=\"color: red;\">战役次数已达上限</span>"
328+
}
321329
},
322330
"退出战役": {
323331
"recognition": "TemplateMatch",

0 commit comments

Comments
 (0)