| 32 | } |
| 33 | |
| 34 | MapFormatPtr MapFormatManager::getMapFormatByName(const std::string& mapFormatName) |
| 35 | { |
| 36 | for (const auto& pair : _mapFormats) |
| 37 | { |
| 38 | if (pair.second->getMapFormatName() == mapFormatName) |
| 39 | { |
| 40 | return pair.second; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | return MapFormatPtr(); // nothing found |
| 45 | } |
| 46 | |
| 47 | MapFormatPtr MapFormatManager::getMapFormatForGameType(const std::string& gameType, |
| 48 | const std::string& extension) |
no outgoing calls
no test coverage detected