mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/720 https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/115 https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/766
20 lines
399 B
C++
20 lines
399 B
C++
#include "StartGameTaskPlugin.h"
|
|
|
|
#include "Controller.h"
|
|
|
|
using namespace asst;
|
|
|
|
bool StartGameTaskPlugin::_run()
|
|
{
|
|
if (m_client_type.empty()) {
|
|
return false;
|
|
}
|
|
return m_ctrler->start_game(m_client_type).has_value();
|
|
}
|
|
|
|
StartGameTaskPlugin& StartGameTaskPlugin::set_client_type(std::string client_type) noexcept
|
|
{
|
|
m_client_type = std::move(client_type);
|
|
return *this;
|
|
}
|