fix: fix build error

This commit is contained in:
zzyyyl
2022-09-28 23:47:52 +08:00
parent 758affb37c
commit dadfbdf8cf
4 changed files with 19 additions and 0 deletions

View File

@@ -43,3 +43,11 @@ bool asst::RoguelikeRecruitConfiger::parse(const json::value& json)
return true;
}
void asst::RecruitConfiger::clear()
{
LogTraceFunction;
m_all_opers.clear();
m_ordered_all_opers_name.clear();
}

View File

@@ -34,6 +34,8 @@ namespace asst
protected:
virtual bool parse(const json::value& json) override;
void clear();
std::unordered_map<std::string, RoguelikeOperInfo> m_all_opers;
std::vector<std::string> m_ordered_all_opers_name;
};

View File

@@ -40,3 +40,10 @@ bool asst::RoguelikeShoppingConfiger::parse(const json::value& json)
}
return true;
}
void asst::RecruitConfiger::clear()
{
LogTraceFunction;
m_goods.clear();
}

View File

@@ -28,6 +28,8 @@ namespace asst
private:
virtual bool parse(const json::value& json) override;
void clear();
std::vector<RoguelikeGoods> m_goods;
};