| 160 | } |
| 161 | |
| 162 | const sGameVersion* cVersions::GetForTileset(eTileTypes pTileType, eTileSub pSub) const { |
| 163 | // Look through all available versions for a campaign name match |
| 164 | for (auto& Version : g_ResourceMan->GetAvailable()) { |
| 165 | |
| 166 | if (Version->hasTileset(pTileType, pSub)) |
| 167 | return Version; |
| 168 | } |
| 169 | |
| 170 | return 0; |
| 171 | } |
| 172 | |
| 173 | const sGameVersion* cVersions::GetForCampaign(const std::string& pCampaign) const { |
| 174 | // Look through all available versions for a campaign name match |
no test coverage detected