mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 18:01:26 +08:00
20 lines
387 B
C++
20 lines
387 B
C++
#include "StartGameTaskPlugin.h"
|
|
|
|
#include "Controller.h"
|
|
|
|
using namespace asst;
|
|
|
|
bool StartGameTaskPlugin::_run()
|
|
{
|
|
if (m_client_type.empty()) {
|
|
return false;
|
|
}
|
|
return ctrler()->start_game(m_client_type);
|
|
}
|
|
|
|
StartGameTaskPlugin& StartGameTaskPlugin::set_client_type(std::string client_type) noexcept
|
|
{
|
|
m_client_type = std::move(client_type);
|
|
return *this;
|
|
}
|