mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
chore: 添加一些日志
This commit is contained in:
@@ -15,6 +15,8 @@ asst::CopilotTask::CopilotTask(const AsstCallback& callback, Assistant* inst)
|
||||
m_battle_task_ptr(std::make_shared<BattleProcessTask>(callback, inst, TaskType)),
|
||||
m_stop_task_ptr(std::make_shared<ProcessTask>(callback, inst, TaskType))
|
||||
{
|
||||
LogTraceFunction;
|
||||
|
||||
auto start_1_tp = std::make_shared<ProcessTask>(callback, inst, TaskType);
|
||||
start_1_tp->set_tasks({ "BattleStartPre" }).set_retry_times(0).set_ignore_error(true);
|
||||
m_subtasks.emplace_back(start_1_tp);
|
||||
@@ -34,6 +36,8 @@ asst::CopilotTask::CopilotTask(const AsstCallback& callback, Assistant* inst)
|
||||
|
||||
bool asst::CopilotTask::set_params(const json::value& params)
|
||||
{
|
||||
LogTraceFunction;
|
||||
|
||||
if (m_running) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user