1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Split CHeroHandler.cpp/.h into 1 file per class

All parts of CHeroHandler.cpp are now in lib/entities/hero
Adjusted includes to use new paths
No functionality changes
This commit is contained in:
Ivan Savenko
2024-10-11 16:30:16 +00:00
parent 7866179a01
commit 10ad0fc760
91 changed files with 867 additions and 730 deletions

View File

@ -107,7 +107,7 @@ void TextLocalizationContainer::registerString(const std::string & identifierMod
assert(!identifierModContext.empty());
assert(!localizedStringModContext.empty());
assert(UID.get().find("..") == std::string::npos); // invalid identifier - there is section that was evaluated to empty string
assert(stringsLocalizations.count(UID.get()) == 0 || identifierModContext == "map"); // registering already registered string?
assert(stringsLocalizations.count(UID.get()) == 0 || boost::algorithm::starts_with(UID.get(), "map")); // registering already registered string?
if(stringsLocalizations.count(UID.get()) > 0)
{