mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
26 lines
596 B
C++
26 lines
596 B
C++
#include "InfrastTradeTask.h"
|
|
|
|
const std::string asst::InfrastTradeTask::FacilityName = "Trade";
|
|
|
|
bool asst::InfrastTradeTask::run()
|
|
{
|
|
json::value task_start_json = json::object{
|
|
{ "task_type", "InfrastTradeTask" },
|
|
{ "task_chain", m_task_chain }
|
|
};
|
|
m_callback(AsstMsg::TaskStart, task_start_json, m_callback_arg);
|
|
|
|
set_facility(FacilityName);
|
|
m_all_available_opers.clear();
|
|
|
|
swipe_to_the_left_of_main_ui();
|
|
enter_facility(FacilityName, 0);
|
|
click_bottomleft_tab();
|
|
|
|
if (!shift_facility_list()) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|