core start game enable implement.

This commit is contained in:
lhhxxxxx
2022-06-05 15:47:27 +08:00
parent 2244a2ae61
commit dd34e29b02
3 changed files with 9 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ asst::StartUpTask::StartUpTask(AsstCallback callback, void* callback_arg)
bool asst::StartUpTask::set_params(const json::value& params)
{
m_start_game_task_ptr->set_param(static_cast<ServerType>(params.get("server_type", 0)));
m_start_game_task_ptr->set_param(static_cast<ServerType>(params.get("server_type", 0)))
.set_enable(params.get("enable",false));
return true;
}