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

Fixed #1338 and #1341. Introduced post-load step to ease initialization of bonus source ids.

This commit is contained in:
Michał W. Urbańczyk
2013-07-21 14:19:29 +00:00
parent 1e11904d8a
commit 0eb496fb57
5 changed files with 40 additions and 3 deletions

View File

@@ -93,6 +93,7 @@ class CContentHandler
/// local version of methods in ContentHandler
void preloadModData(std::string modName, std::vector<std::string> fileList);
void loadMod(std::string modName);
void afterLoadFinalization();
};
std::map<std::string, ContentTypeHandler> handlers;
@@ -105,6 +106,9 @@ public:
/// actually loads data in mod
void loadMod(std::string modName);
/// all data was loaded, time for final validation / integration
void afterLoadFinalization();
};
typedef std::string TModID;