refactor.重构基建类,添加可用干员人数不足的回调

This commit is contained in:
MistEO
2022-01-10 00:09:46 +08:00
parent 52eb57940b
commit 9967aaa9e2
24 changed files with 117 additions and 118 deletions

View File

@@ -8,15 +8,12 @@
#include "ProcessTask.h"
#include "Resource.h"
const std::string asst::InfrastReceptionTask::FacilityName = "Reception";
bool asst::InfrastReceptionTask::_run()
{
set_facility(FacilityName);
m_all_available_opers.clear();
swipe_to_the_right_of_main_ui();
enter_facility(FacilityName, 0);
enter_facility();
click_bottomleft_tab();
close_end_of_clue_exchange();
@@ -146,7 +143,7 @@ bool asst::InfrastReceptionTask::shift()
const auto image = Ctrler.get_image();
MatchImageAnalyzer add_analyzer(image);
const auto raw_task_ptr = Task.get("InfrastAddOperator" + m_facility + m_work_mode_name);
const auto raw_task_ptr = Task.get("InfrastAddOperator" + facility_name() + m_work_mode_name);
switch (raw_task_ptr->algorithm) {
case AlgorithmType::JustReturn:
if (raw_task_ptr->action == ProcessTaskAction::ClickRect) {