Bazaar developer reference

CvPlayer::setConscriptCount(int)

Defined in
CvPlayer.cpp, line 15901
Class
CvPlayer
Hook name
CivHooks::CvPlayer_setConscriptCount

Hooks

static bool BeforeCvPlayer_setConscriptCount(CvPlayer* self, int iNewValue);static void AfterCvPlayer_setConscriptCount(CvPlayer* self, int iNewValue);static void ReplaceCvPlayer_setConscriptCount(void (*original)(CvPlayer*, int), CvPlayer* self, int iNewValue);CivRegisterBefore<CivHooks::CvPlayer_setConscriptCount>(host, &BeforeCvPlayer_setConscriptCount);CivRegisterAfter<CivHooks::CvPlayer_setConscriptCount>(host, &AfterCvPlayer_setConscriptCount);CivRegisterReplace<CivHooks::CvPlayer_setConscriptCount>(host, &ReplaceCvPlayer_setConscriptCount);

Code

15901void CvPlayer::setConscriptCount(int iNewValue)15902{15903	m_iConscriptCount = iNewValue;15904	CvAssert(getConscriptCount() >= 0);15905}

Calls

Called by