mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Large changeset, first part of editing H3 objects via mods feature. Changes:
- loading of all objects (including H3 objects) will be directed by mod handlers - common base for all handlers accessible from mod system (IHanderBase) - json format changes: use struct with string ID's instead of vector - fixed some gcc/clang errors and warnings - fixed several cases of memory leaks and invalid memory access (mostly related to usage of bonus system and/or identifiers resolution) Note that right now loading is much slower than before due to excessive json validation (or not fast enough validator)
This commit is contained in:
@ -149,7 +149,7 @@ void CGeneralTextHandler::readToVector(std::string sourceName, std::vector<std::
|
||||
while (parser.endLine());
|
||||
}
|
||||
|
||||
void CGeneralTextHandler::load()
|
||||
CGeneralTextHandler::CGeneralTextHandler()
|
||||
{
|
||||
readToVector("DATA/VCDESC.TXT", victoryConditions);
|
||||
readToVector("DATA/LCDESC.TXT", lossCondtions);
|
||||
@ -327,8 +327,3 @@ void CGeneralTextHandler::load()
|
||||
threat.push_back(buffer);
|
||||
}
|
||||
}
|
||||
|
||||
CGeneralTextHandler::CGeneralTextHandler()
|
||||
{
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user