mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
24 lines
654 B
C++
24 lines
654 B
C++
#pragma once
|
|
#include "AbstractConfiger.h"
|
|
|
|
#include <optional>
|
|
|
|
#include "AsstBattleDef.h"
|
|
|
|
namespace asst
|
|
{
|
|
class RoguelikeCopilotConfiger final : public SingletonHolder<RoguelikeCopilotConfiger>, public AbstractConfiger
|
|
{
|
|
public:
|
|
virtual ~RoguelikeCopilotConfiger() override = default;
|
|
|
|
std::optional<RoguelikeBattleData> get_stage_data(const std::string& stage_name) const;
|
|
|
|
protected:
|
|
virtual bool parse(const json::value& json) override;
|
|
std::unordered_map<std::string, RoguelikeBattleData> m_stage_data;
|
|
};
|
|
|
|
inline static auto& RoguelikeCopilot = RoguelikeCopilotConfiger::get_instance();
|
|
}
|