1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

code review

This commit is contained in:
Laserlicht
2024-11-14 00:34:39 +01:00
committed by GitHub
parent 0e5711f8bf
commit 0f94f35dcf
5 changed files with 44 additions and 42 deletions

View File

@@ -72,6 +72,8 @@ class SelectionTab : public CIntObject
// FIXME: CSelectionBase use them too!
std::shared_ptr<CAnimation> iconsVictoryCondition;
std::shared_ptr<CAnimation> iconsLossCondition;
std::vector<std::shared_ptr<ListItem>> unSupportedSaves;
public:
std::vector<std::shared_ptr<ElementInfo>> allItems;
std::vector<std::shared_ptr<ElementInfo>> curItems;
@@ -127,7 +129,9 @@ private:
bool isMapSupported(const CMapInfo & info);
void parseMaps(const std::unordered_set<ResourcePath> & files);
void parseSaves(const std::unordered_set<ResourcePath> & files);
std::vector<ResourcePath> parseSaves(const std::unordered_set<ResourcePath> & files);
void parseCampaigns(const std::unordered_set<ResourcePath> & files);
std::unordered_set<ResourcePath> getFiles(std::string dirURI, EResType resType);
void handleUnsupportedSavegames(const std::vector<ResourcePath> files);
};