mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 17:57:01 +08:00
* Revert "fix: 基建换班-继续专精 参数字段名格式不一致" This reverts commit341273e44f. * Revert "chore: 部分客户端未支持的功能添加注释" This reverts commit186584321e. * Revert "fix: 修复基建训练室-继续训练字符串键值冲突" This reverts commitbf0f85eef0. * Revert "feat: 基建新增领取专精功能 (#7164)" This reverts commitceb6b6aced.
52 lines
1.7 KiB
C++
52 lines
1.7 KiB
C++
#pragma once
|
|
#include <filesystem>
|
|
|
|
#include "Task/InterfaceTask.h"
|
|
|
|
namespace asst
|
|
{
|
|
class ProcessTask;
|
|
class InfrastInfoTask;
|
|
class InfrastMfgTask;
|
|
class InfrastTradeTask;
|
|
class InfrastPowerTask;
|
|
class InfrastControlTask;
|
|
class InfrastReceptionTask;
|
|
class InfrastOfficeTask;
|
|
class InfrastDormTask;
|
|
class ReplenishOriginiumShardTaskPlugin;
|
|
class InfrastProcessingTask;
|
|
|
|
class InfrastTask final : public InterfaceTask
|
|
{
|
|
enum class Mode
|
|
{
|
|
Default = 0,
|
|
Custom = 10000,
|
|
};
|
|
|
|
public:
|
|
inline static constexpr std::string_view TaskType = "Infrast";
|
|
|
|
InfrastTask(const AsstCallback& callback, Assistant* inst);
|
|
virtual ~InfrastTask() override = default;
|
|
|
|
virtual bool set_params(const json::value& params) override;
|
|
|
|
private:
|
|
bool parse_and_set_custom_config(const std::filesystem::path& path, int index);
|
|
|
|
std::shared_ptr<ProcessTask> m_infrast_begin_task_ptr = nullptr;
|
|
std::shared_ptr<InfrastInfoTask> m_info_task_ptr = nullptr;
|
|
std::shared_ptr<InfrastMfgTask> m_mfg_task_ptr = nullptr;
|
|
std::shared_ptr<InfrastTradeTask> m_trade_task_ptr = nullptr;
|
|
std::shared_ptr<InfrastPowerTask> m_power_task_ptr = nullptr;
|
|
std::shared_ptr<InfrastControlTask> m_control_task_ptr = nullptr;
|
|
std::shared_ptr<InfrastReceptionTask> m_reception_task_ptr = nullptr;
|
|
std::shared_ptr<InfrastOfficeTask> m_office_task_ptr = nullptr;
|
|
std::shared_ptr<InfrastProcessingTask> m_processing_task_ptr = nullptr;
|
|
std::shared_ptr<InfrastDormTask> m_dorm_task_ptr = nullptr;
|
|
std::shared_ptr<ReplenishOriginiumShardTaskPlugin> m_replenish_task_ptr = nullptr;
|
|
};
|
|
}
|