CvPlayer::launch(VictoryTypes)
- Defined in
- CvPlayer.cpp, line 26006
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_launch
Hooks
static bool BeforeCvPlayer_launch(CvPlayer* self, VictoryTypes eVictory);static void AfterCvPlayer_launch(CvPlayer* self, VictoryTypes eVictory);static void ReplaceCvPlayer_launch(void (*original)(CvPlayer*, VictoryTypes), CvPlayer* self, VictoryTypes eVictory);CivRegisterBefore<CivHooks::CvPlayer_launch>(host, &BeforeCvPlayer_launch);CivRegisterAfter<CivHooks::CvPlayer_launch>(host, &AfterCvPlayer_launch);CivRegisterReplace<CivHooks::CvPlayer_launch>(host, &ReplaceCvPlayer_launch);
Code
26006void CvPlayer::launch(VictoryTypes eVictory)26007{26008 CvTeam& kTeam = GET_TEAM(getTeam());2600926010 if(!kTeam.canLaunch(eVictory))26011 {26012 return;26013 }26014}