mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
31 lines
789 B
C++
31 lines
789 B
C++
#pragma once
|
|
#include "Common/AsstBattleDef.h"
|
|
#include "Config/AbstractConfig.h"
|
|
|
|
namespace asst
|
|
{
|
|
class SSSCopilotConfig : public MAA_NS::SingletonHolder<SSSCopilotConfig>, public AbstractConfig
|
|
{
|
|
public:
|
|
virtual ~SSSCopilotConfig() override = default;
|
|
|
|
const battle::sss::CompleteData& get_data() const noexcept { return m_data; }
|
|
|
|
bool contains(const std::string& name) const noexcept { return m_data.stages_data.contains(name); }
|
|
|
|
const battle::sss::CombatData& get_data(const std::string& name) const noexcept
|
|
{
|
|
return m_data.stages_data.at(name);
|
|
}
|
|
|
|
void clear();
|
|
|
|
protected:
|
|
virtual bool parse(const json::value& json) override;
|
|
|
|
battle::sss::CompleteData m_data;
|
|
};
|
|
|
|
inline static auto& SSSCopilot = SSSCopilotConfig::get_instance();
|
|
}
|