#pragma once

#include "TaskBase.h"

MAA_TASK_NS_BEGIN

class ActionTask : public TaskBase
{
public:
    using PipelineDataMap = Context::PipelineDataMap;

public:
    using TaskBase::TaskBase;

    virtual ~ActionTask() override = default;

    virtual bool run() override;

    virtual void post_stop() override {}

public:
    MaaNodeId run_with_param(const cv::Rect& box, const json::value& reco_detail);
};

MAA_TASK_NS_END
