mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
chore: 删除目前用不上了的肉鸽代码
This commit is contained in:
@@ -22,19 +22,6 @@ const asst::RoguelikeOperInfo& asst::RoguelikeRecruitConfig::get_oper_info(const
|
||||
}
|
||||
}
|
||||
|
||||
const std::vector<std::pair<int, int>> asst::RoguelikeRecruitConfig::get_role_info(
|
||||
const std::string& theme, const battle::Role& role) const noexcept
|
||||
{
|
||||
if (role == battle::Role::Unknown) {
|
||||
return std::vector<std::pair<int, int>>();
|
||||
}
|
||||
auto& map = m_role_offset_map.at(theme);
|
||||
if (auto iter = map.find(role); iter != map.end()) {
|
||||
return iter->second;
|
||||
}
|
||||
return std::vector<std::pair<int, int>>();
|
||||
}
|
||||
|
||||
const std::vector<std::string> asst::RoguelikeRecruitConfig::get_group_info(const std::string& theme) const noexcept
|
||||
{
|
||||
return m_oper_groups.at(theme);
|
||||
@@ -134,7 +121,6 @@ bool asst::RoguelikeRecruitConfig::parse(const json::value& json)
|
||||
void asst::RoguelikeRecruitConfig::clear(const std::string& key)
|
||||
{
|
||||
m_all_opers.erase(key);
|
||||
m_role_offset_map.erase(key);
|
||||
m_oper_groups.erase(key);
|
||||
m_team_complete_comdition.erase(key);
|
||||
}
|
||||
|
||||
@@ -46,8 +46,6 @@ namespace asst
|
||||
virtual ~RoguelikeRecruitConfig() override = default;
|
||||
|
||||
const RoguelikeOperInfo& get_oper_info(const std::string& theme, const std::string& name) noexcept;
|
||||
const std::vector<std::pair<int, int>> get_role_info(const std::string& theme,
|
||||
const battle::Role& role) const noexcept; // [deprecated]
|
||||
const std::vector<std::string> get_group_info(const std::string& theme) const noexcept;
|
||||
const std::vector<RecruitPriorityOffset> get_team_complete_info(const std::string& theme) const noexcept;
|
||||
int get_group_id(const std::string& theme, const std::string& name) const noexcept;
|
||||
@@ -58,8 +56,6 @@ namespace asst
|
||||
void clear(const std::string& theme);
|
||||
|
||||
std::unordered_map<std::string, std::unordered_map<std::string, RoguelikeOperInfo>> m_all_opers;
|
||||
std::unordered_map<std::string, std::unordered_map<battle::Role, std::vector<std::pair<int, int>>>>
|
||||
m_role_offset_map; // [deprecated]
|
||||
std::unordered_map<std::string, std::vector<std::string>> m_oper_groups;
|
||||
std::unordered_map<std::string, std::vector<RecruitPriorityOffset>> m_team_complete_comdition;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user