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

Method isCampaignAvailable

Source/Versions.cpp:213–226  ·  view source on GitHub ↗

* Is a campaign available */

Source from the content-addressed store, hash-verified

211 * Is a campaign available
212 */
213bool cVersions::isCampaignAvailable(const std::string& pName) const {
214 if (!isCampaignKnown(pName))
215 return false;
216
217 // Loop each available version
218 for (auto& Version : g_ResourceMan->GetAvailable()) {
219
220 // Is the data available for it?
221 if (Version->mName == pName)
222 return true;
223 }
224
225 return false;
226}
227
228std::vector<std::string> cVersions::GetCampaignNames() const {
229 std::vector<std::string> SortedList;

Callers 2

Campaign_Select_SetupMethod · 0.45
Intro_OpenFodderMethod · 0.45

Calls 1

GetAvailableMethod · 0.80

Tested by

no test coverage detected