CvPreGame::isDLCAvailable(PlayerTypes, const GUID &)
- Defined in
- CvPreGame.cpp, line 3372
- Hook name
CivHooks::CvPreGame_isDLCAvailable
Hooks
static bool BeforeCvPreGame_isDLCAvailable(PlayerTypes p, const GUID& kDLCID, bool& result);static void AfterCvPreGame_isDLCAvailable(PlayerTypes p, const GUID& kDLCID, bool& result);static bool ReplaceCvPreGame_isDLCAvailable(bool (*original)(PlayerTypes, const GUID&), PlayerTypes p, const GUID& kDLCID);CivRegisterBefore<CivHooks::CvPreGame_isDLCAvailable>(host, &BeforeCvPreGame_isDLCAvailable);CivRegisterAfter<CivHooks::CvPreGame_isDLCAvailable>(host, &AfterCvPreGame_isDLCAvailable);CivRegisterReplace<CivHooks::CvPreGame_isDLCAvailable>(host, &ReplaceCvPreGame_isDLCAvailable);
Code
3372bool isDLCAvailable(PlayerTypes p, const GUID& kDLCID)3373{3374 if(p >= 0 && p < MAX_PLAYERS)3375 {3376 const PackageIDList& kList = s_DLCPackagesAvailable[p];3377 for(PackageIDList::const_iterator itr = kList.begin(); itr != kList.end(); ++itr)3378 {3379 if(*itr == kDLCID)3380 return true;3381 }3382 }33833384 return false;3385}
Calls
operator==std::list::_Const_iterator::operator!=std::list::_Const_iterator::operator*std::list::_Const_iterator::operator++std::list::beginstd::list::endstd::vector::operator[]