MistEO
2022-06-08 01:50:51 +08:00
parent 422a2bb2af
commit cdc633d400
25 changed files with 230 additions and 106 deletions

View 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;
}