diff --git a/src/MeoAssistant/StartGameTask.cpp b/src/MeoAssistant/StartGameTask.cpp index d35307d3b4..a0c35f61ad 100644 --- a/src/MeoAssistant/StartGameTask.cpp +++ b/src/MeoAssistant/StartGameTask.cpp @@ -6,16 +6,16 @@ using namespace asst; bool StartGameTask::_run() { - if(m_ctrler->start_game(m_server_type)) + if(m_ctrler->start_game(m_client_type)) { return true; } return false; } -StartGameTask& StartGameTask::set_param(std::string server_type) noexcept +StartGameTask& StartGameTask::set_param(std::string client_type) noexcept { - m_server_type = server_type; + m_client_type = client_type; return *this; } diff --git a/src/MeoAssistant/StartGameTask.h b/src/MeoAssistant/StartGameTask.h index 7115a5be7b..d359adbfb3 100644 --- a/src/MeoAssistant/StartGameTask.h +++ b/src/MeoAssistant/StartGameTask.h @@ -17,6 +17,6 @@ namespace asst protected: bool _run() override; - std::string m_server_type = ""; + std::string m_client_type = ""; }; } diff --git a/src/MeoAssistant/StartUpTask.cpp b/src/MeoAssistant/StartUpTask.cpp index b8a94405aa..f70cc92570 100644 --- a/src/MeoAssistant/StartUpTask.cpp +++ b/src/MeoAssistant/StartUpTask.cpp @@ -16,7 +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(params.get("server_type", "")) - .set_enable(params.get("enable",false)); + m_start_game_task_ptr->set_param(params.get("client_type", "")) + .set_enable(params.get("start_game_enable",false)); return true; } diff --git a/src/MeoAsstGui/Helper/AsstProxy.cs b/src/MeoAsstGui/Helper/AsstProxy.cs index 6026c1c748..c3cc0dffb3 100644 --- a/src/MeoAsstGui/Helper/AsstProxy.cs +++ b/src/MeoAsstGui/Helper/AsstProxy.cs @@ -688,8 +688,8 @@ namespace MeoAsstGui public bool AsstAppendStartUp(string server_type, bool enable) { var task_params = new JObject(); - task_params["server_type"] = server_type; - task_params["enable"] = enable; + task_params["client_type"] = server_type; + task_params["start_game_enable"] = enable; return AsstAppendTaskWithEncoding("StartUp", task_params); }