mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 18:01:26 +08:00
27 lines
459 B
C++
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;
|
|
}
|