CvGame::removeGreatPersonBornName(const CvString &)
- Defined in
- CvGame.cpp, line 7583
- Class
- CvGame
- Hook name
CivHooks::CvGame_removeGreatPersonBornName
Hooks
static bool BeforeCvGame_removeGreatPersonBornName(CvGame* self, const CvString& szName);static void AfterCvGame_removeGreatPersonBornName(CvGame* self, const CvString& szName);static void ReplaceCvGame_removeGreatPersonBornName(void (*original)(CvGame*, const CvString&), CvGame* self, const CvString& szName);CivRegisterBefore<CivHooks::CvGame_removeGreatPersonBornName>(host, &BeforeCvGame_removeGreatPersonBornName);CivRegisterAfter<CivHooks::CvGame_removeGreatPersonBornName>(host, &AfterCvGame_removeGreatPersonBornName);CivRegisterReplace<CivHooks::CvGame_removeGreatPersonBornName>(host, &ReplaceCvGame_removeGreatPersonBornName);
Code
7583void CvGame::removeGreatPersonBornName(const CvString& szName)7584{7585 std::vector<CvString>::const_iterator it;7586 for(it = m_aszGreatPeopleBorn.begin(); it != m_aszGreatPeopleBorn.end(); ++it)7587 {7588 if(*it == szName)7589 {7590 m_aszGreatPeopleBorn.erase(it);7591 break;7592 }7593 }7594}
Calls
std::_Vector_const_iterator::_Vector_const_iteratorstd::_Vector_const_iterator::_Vector_const_iteratorstd::_Vector_const_iterator::operator!=std::_Vector_const_iterator::operator*std::_Vector_const_iterator::operator++std::_Vector_const_iterator::operator=std::operator==std::vector::beginstd::vector::endstd::vector::erase