mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
25 lines
624 B
C++
25 lines
624 B
C++
#pragma once
|
|
|
|
#include "OcrAbstractTask.h"
|
|
|
|
namespace asst {
|
|
// 流程任务,按照配置文件里的设置的流程运行
|
|
class ProcessTask : public OcrAbstractTask
|
|
{
|
|
public:
|
|
ProcessTask(AsstCallback callback, void* callback_arg);
|
|
virtual ~ProcessTask() = default;
|
|
|
|
virtual bool run() override;
|
|
|
|
virtual void set_tasks(const std::vector<std::string>& cur_tasks_name) {
|
|
m_cur_tasks_name = cur_tasks_name;
|
|
}
|
|
|
|
protected:
|
|
std::shared_ptr<TaskInfo> match_image(asst::Rect* matched_rect = NULL);
|
|
void exec_click_task(const asst::Rect& matched_rect);
|
|
|
|
std::vector<std::string> m_cur_tasks_name;
|
|
};
|
|
} |