Bazaar developer reference

CvPlayer::SetMaxNumBuilders(int)

Defined in
CvPlayer.cpp, line 4179
Class
CvPlayer
Hook name
CivHooks::CvPlayer_SetMaxNumBuilders

Hooks

static bool BeforeCvPlayer_SetMaxNumBuilders(CvPlayer* self, int iNum);static void AfterCvPlayer_SetMaxNumBuilders(CvPlayer* self, int iNum);static void ReplaceCvPlayer_SetMaxNumBuilders(void (*original)(CvPlayer*, int), CvPlayer* self, int iNum);CivRegisterBefore<CivHooks::CvPlayer_SetMaxNumBuilders>(host, &BeforeCvPlayer_SetMaxNumBuilders);CivRegisterAfter<CivHooks::CvPlayer_SetMaxNumBuilders>(host, &AfterCvPlayer_SetMaxNumBuilders);CivRegisterReplace<CivHooks::CvPlayer_SetMaxNumBuilders>(host, &ReplaceCvPlayer_SetMaxNumBuilders);

Code

4178/// Sets the maximum number of Builders a player can Train4179void CvPlayer::SetMaxNumBuilders(int iNum)4180{4181	if(GetMaxNumBuilders() != iNum)4182	{4183		m_iMaxNumBuilders = iNum;4184	}4185}

Calls

Called by