Files
MaaAssistantArknights/src/MaaCore/Task/Miscellaneous/StopGameTaskPlugin.cpp
Rbqwow 67c10f1982 refactor: StopGame (#9658)
* perf: StopGame

* style: rename Intent to packageName

* chore: 不准不选择区服

* fix: 移除其他配置中的抽象 stop 匹配

* style: 统一驼峰

* style: 按照执行顺序重新排序

* feat: 添加回调和文档

* fix: 修复参数传入

* docs: 更新文档

* fix: merge

* chore: 把WSA的配置也改了

* chore: update submodule

---------

Co-authored-by: uye <99072975+ABA2396@users.noreply.github.com>
Co-authored-by: Loong <wangl.cc@outlook.com>
2024-08-11 01:50:30 +08:00

20 lines
393 B
C++

#include "StopGameTaskPlugin.h"
#include "Controller/Controller.h"
using namespace asst;
bool StopGameTaskPlugin::_run()
{
if (m_client_type.empty()) {
return false;
}
return ctrler()->stop_game(m_client_type);
}
StopGameTaskPlugin& StopGameTaskPlugin::set_client_type(std::string client_type) noexcept
{
m_client_type = std::move(client_type);
return *this;
}