Files
MaaAssistantArknights/src/MeoAssistant/StartGameTask.cpp
lhhxxxxx a69267b924 renamed.
2022-06-05 18:35:13 +08:00

27 lines
459 B
C++

#include "StartGameTask.h"
#include "Controller.h"
using namespace asst;
bool StartGameTask::_run()
{
if(m_ctrler->start_game(m_client_type))
{
return true;
}
return false;
}
StartGameTask& StartGameTask::set_param(std::string client_type) noexcept
{
m_client_type = client_type;
return *this;
}
StartGameTask& StartGameTask::set_enable(bool enable) noexcept
{
AbstractTask::set_enable(enable);
return *this;
}