MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / GetForTileset

Method GetForTileset

Source/Versions.cpp:162–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162const 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
173const sGameVersion* cVersions::GetForCampaign(const std::string& pCampaign) const {
174 // Look through all available versions for a campaign name match

Callers 1

Map_Load_ResourcesMethod · 0.80

Calls 2

GetAvailableMethod · 0.80
hasTilesetMethod · 0.80

Tested by

no test coverage detected