1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Draft on classes hierarchy.

* patcher and loader uses diferent input (JsonNode and binary stream of zipped map archive), dicided to split them
This commit is contained in:
AlexVinS
2015-08-07 22:33:44 +03:00
committed by AlexVinS
parent 36f4d86844
commit adc271d7b3
4 changed files with 136 additions and 102 deletions

View File

@@ -103,5 +103,5 @@ std::unique_ptr<IMapPatcher> CMapService::getMapPatcher(std::string scenarioName
boost::to_lower(scenarioName);
logGlobal->debugStream() << "Request to patch map " << scenarioName;
return std::unique_ptr<IMapPatcher>(new CMapLoaderJson(node[scenarioName]));
return std::unique_ptr<IMapPatcher>(new CMapPatcher(node[scenarioName]));
}