feat: 点刺、后勤种子存钱 & ProcessTask 添加 Input 方法 (#11521)

* feat: 为 ProcessTask 添加文本输入功能

* feat: 点刺、后勤种子存钱

* docs: 为 Input 方法添加文档

* perf: 添加循环刷钱cd检查

* perf: werror

* perf: 改变 Input 的 int 值

* perf: 减少 AsstProxy 传参,改用 c:Binding

* chore: 界面显示和获取分离

---------

Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com>
This commit is contained in:
晓丶梦丶仁
2025-01-12 20:03:09 +08:00
committed by GitHub
parent 93ab86afbb
commit 3d5e05414f
38 changed files with 252 additions and 15 deletions

View File

@@ -431,6 +431,7 @@ asst::TaskPtr asst::TaskData::generate_task_info(std::string_view name)
ASST_TASKDATA_GET_VALUE_OR("rectMove", rect_move);
ASST_TASKDATA_GET_VALUE_OR("specificRect", specific_rect);
ASST_TASKDATA_GET_VALUE_OR("specialParams", special_params);
ASST_TASKDATA_GET_VALUE_OR("inputText", input_text);
// 展开五个任务列表中的虚任务
ASST_TASKDATA_GET_VALUE_OR_LAZY("next", next, false);
@@ -933,6 +934,7 @@ bool asst::TaskData::syntax_check(std::string_view task_name, const json::value&
"specialParams", "sub", "subErrorIgnored",
// specific
"inputText"
} },
};
// clang-format on
@@ -940,6 +942,7 @@ bool asst::TaskData::syntax_check(std::string_view task_name, const json::value&
static const std::unordered_map<ProcessTaskAction, std::unordered_set<std::string>> allowed_key_under_action = {
{ ProcessTaskAction::ClickRect, { "specificRect" } },
{ ProcessTaskAction::Swipe, { "specificRect", "rectMove" } },
{ ProcessTaskAction::Input, { "inputText" } },
};
auto is_doc = [&](std::string_view key) {