Merge pull request #2412 from MaaAssistantArknights/feat/enum_to_string

feat: 为部分枚举类型增加与字符串类型的互转函数
This commit is contained in:
MistEO
2022-10-24 22:00:51 +08:00
committed by GitHub
6 changed files with 96 additions and 62 deletions

View File

@@ -210,10 +210,10 @@ bool ProcessTask::_run()
info["details"] = json::object {
{ "task", cur_name },
{ "action", static_cast<int>(m_cur_task_ptr->action) },
{ "action", enum_to_string(m_cur_task_ptr->action) },
{ "exec_times", exec_times },
{ "max_times", max_times },
{ "algorithm", static_cast<int>(m_cur_task_ptr->algorithm) },
{ "algorithm", enum_to_string(m_cur_task_ptr->algorithm) },
};
callback(AsstMsg::SubTaskStart, info);