mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
feat.新增支持刷理智时崩溃自动重开游戏并继续上一次战斗。还重构了一些有的没的
https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/720 https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/115 https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/766
This commit is contained in:
19
src/MeoAssistant/StartGameTaskPlugin.cpp
Normal file
19
src/MeoAssistant/StartGameTaskPlugin.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user