| 401 | } |
| 402 | |
| 403 | MaaCtrlId ControllerAgent::post(Action action) |
| 404 | { |
| 405 | // LogInfo << VAR(action.type) << VAR(action.param); |
| 406 | |
| 407 | if (!check_stop()) { |
| 408 | return MaaInvalidId; |
| 409 | } |
| 410 | |
| 411 | if (!action_runner_) { |
| 412 | return MaaInvalidId; |
| 413 | } |
| 414 | return action_runner_->post(std::move(action)); |
| 415 | } |
| 416 | |
| 417 | MaaCtrlId ControllerAgent::focus_id(MaaCtrlId id) |
| 418 | { |