core refactor.

This commit is contained in:
lhhxxxxx
2022-06-05 17:57:05 +08:00
parent 559979fa9b
commit f640bba867
8 changed files with 20 additions and 21 deletions

View File

@@ -6,11 +6,14 @@ using namespace asst;
bool StartGameTask::_run()
{
m_ctrler->start_game(m_server_type);
return true;
if(m_ctrler->start_game(m_server_type))
{
return true;
}
return false;
}
StartGameTask& StartGameTask::set_param(ServerType server_type) noexcept
StartGameTask& StartGameTask::set_param(std::string server_type) noexcept
{
m_server_type = server_type;
return *this;