mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
@@ -118,6 +118,7 @@ bool asst::CopilotTask::set_params(const json::value& params)
|
||||
// 启用队列的话,这项为true
|
||||
bool need_navigate = params.get("need_navigate", false);
|
||||
m_task_file_reload_task_ptr->set_enable(need_navigate);
|
||||
m_battle_task_ptr->set_wait_until_end(need_navigate);
|
||||
|
||||
// 不使用代理指挥
|
||||
m_not_use_prts_task_ptr->set_enable(need_navigate);
|
||||
|
||||
@@ -78,6 +78,11 @@ bool asst::BattleProcessTask::set_stage_name(const std::string& stage_name)
|
||||
return true;
|
||||
}
|
||||
|
||||
void asst::BattleProcessTask::set_wait_until_end(bool wait_until_end)
|
||||
{
|
||||
m_need_to_wait_until_end = wait_until_end;
|
||||
}
|
||||
|
||||
bool asst::BattleProcessTask::to_group()
|
||||
{
|
||||
std::unordered_map<std::string, std::vector<std::string>> groups;
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace asst
|
||||
virtual ~BattleProcessTask() override = default;
|
||||
|
||||
virtual bool set_stage_name(const std::string& stage_name) override;
|
||||
void set_wait_until_end(bool wait_until_end);
|
||||
|
||||
protected:
|
||||
virtual bool _run() override;
|
||||
@@ -27,7 +28,7 @@ namespace asst
|
||||
return false;
|
||||
}
|
||||
virtual battle::copilot::CombatData& get_combat_data() { return m_combat_data; }
|
||||
virtual bool need_to_wait_until_end() const { return false; }
|
||||
virtual bool need_to_wait_until_end() const { return m_need_to_wait_until_end; }
|
||||
|
||||
bool to_group();
|
||||
bool do_action(const battle::copilot::Action& action, size_t index);
|
||||
@@ -42,5 +43,6 @@ namespace asst
|
||||
std::unordered_map</*group*/ std::string, /*oper*/ std::string> m_oper_in_group;
|
||||
|
||||
bool m_in_bullet_time = false;
|
||||
bool m_need_to_wait_until_end = false;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user