mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-14 16:03:45 +00:00
feat(Core/Modules): Preparation to implement progression-system module. (#8837)
This commit is contained in:
@@ -47,7 +47,7 @@ public:
|
||||
UpdateFetcher(Path const& updateDirectory,
|
||||
std::function<void(std::string const&)> const& apply,
|
||||
std::function<void(Path const& path)> const& applyFile,
|
||||
std::function<QueryResult(std::string const&)> const& retrieve, std::string const& dbModuleName);
|
||||
std::function<QueryResult(std::string const&)> const& retrieve, std::string const& dbModuleName, std::vector<std::string> const* setDirectories = nullptr);
|
||||
~UpdateFetcher();
|
||||
|
||||
UpdateResult Update(bool const redundancyChecks, bool const allowRehash,
|
||||
@@ -64,6 +64,7 @@ private:
|
||||
{
|
||||
RELEASED,
|
||||
CUSTOM,
|
||||
MODULE,
|
||||
ARCHIVED
|
||||
};
|
||||
|
||||
@@ -83,6 +84,8 @@ private:
|
||||
return RELEASED;
|
||||
else if (state == "CUSTOM")
|
||||
return CUSTOM;
|
||||
else if (state == "MODULE")
|
||||
return MODULE;
|
||||
|
||||
return ARCHIVED;
|
||||
}
|
||||
@@ -91,14 +94,16 @@ private:
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case RELEASED:
|
||||
return "RELEASED";
|
||||
case CUSTOM:
|
||||
return "CUSTOM";
|
||||
case ARCHIVED:
|
||||
return "ARCHIVED";
|
||||
default:
|
||||
return "";
|
||||
case RELEASED:
|
||||
return "RELEASED";
|
||||
case CUSTOM:
|
||||
return "CUSTOM";
|
||||
case MODULE:
|
||||
return "MODULE";
|
||||
case ARCHIVED:
|
||||
return "ARCHIVED";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -147,6 +152,7 @@ private:
|
||||
|
||||
// modules
|
||||
std::string const _dbModuleName;
|
||||
std::vector<std::string> const* _setDirectories;
|
||||
};
|
||||
|
||||
#endif // UpdateFetcher_h__
|
||||
|
||||
Reference in New Issue
Block a user