1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

Implemented h3c translations

This commit is contained in:
Ivan Savenko
2023-03-14 19:46:15 +02:00
parent a4ef9fd0b8
commit f42a894723
3 changed files with 50 additions and 30 deletions

View File

@ -161,23 +161,22 @@ void ClientCommandManager::processCommand(const std::string &message, bool calle
return ident.getType() == EResType::MAP;
});
//std::unordered_set<ResourceID> campaignList = CResourceHandler::get()->getFilteredFiles([&](const ResourceID & ident)
//{
// return ident.getType() == EResType::CAMPAIGN;
//});
std::unordered_set<ResourceID> campaignList = CResourceHandler::get()->getFilteredFiles([&](const ResourceID & ident)
{
return ident.getType() == EResType::CAMPAIGN;
});
CMapService mapService;
for (auto const & mapName : mapList)
mapService.loadMap(mapName); // load and drop loaded map - we only need loader to run over all maps
// TODO:
//for (auto const & campaignName : campaignList)
//{
// CCampaignState state(CCampaignHandler::getCampaign(campaignName.getName()));
// for (auto const & part : state.camp->mapPieces)
// delete state.getMap(part.first);
//}
for (auto const & campaignName : campaignList)
{
CCampaignState state(CCampaignHandler::getCampaign(campaignName.getName()));
for (auto const & part : state.camp->mapPieces)
delete state.getMap(part.first);
}
VLC->generaltexth->dumpAllTexts();
}