| 157 | } |
| 158 | |
| 159 | maajs::ValueType TaskerImpl::post_action( |
| 160 | maajs::ValueType self, |
| 161 | maajs::EnvType, |
| 162 | std::string action_type, |
| 163 | maajs::ValueType action_param, |
| 164 | MaaRect box, |
| 165 | maajs::OptionalParam<std::string> reco_detail) |
| 166 | { |
| 167 | auto id = MaaTaskerPostAction( |
| 168 | tasker, |
| 169 | action_type.c_str(), |
| 170 | maajs::JsonStringify(env, action_param).c_str(), |
| 171 | &box, |
| 172 | reco_detail.value_or("").c_str()); |
| 173 | return maajs::CallCtorHelper(ExtContext::get(env)->taskJobCtor, self, id); |
| 174 | } |
| 175 | |
| 176 | maajs::ValueType TaskerImpl::post_stop(maajs::ValueType self, maajs::EnvType) |
| 177 | { |
nothing calls this directly
no test coverage detected