Bazaar developer reference

CvDllGame::GetVariableCitySizeFromPopulation(unsigned int)

Defined in
CvDllGame.cpp, line 247
Class
CvDllGame
Hook name
CivHooks::CvDllGame_GetVariableCitySizeFromPopulation

Hooks

static bool BeforeCvDllGame_GetVariableCitySizeFromPopulation(CvDllGame* self, unsigned int nPopulation, unsigned int& result);static void AfterCvDllGame_GetVariableCitySizeFromPopulation(CvDllGame* self, unsigned int nPopulation, unsigned int& result);static unsigned int ReplaceCvDllGame_GetVariableCitySizeFromPopulation(unsigned int (*original)(CvDllGame*, unsigned int), CvDllGame* self, unsigned int nPopulation);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_GetVariableCitySizeFromPopulation::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGame_GetVariableCitySizeFromPopulation);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_GetVariableCitySizeFromPopulation::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGame_GetVariableCitySizeFromPopulation);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGame_GetVariableCitySizeFromPopulation::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGame_GetVariableCitySizeFromPopulation);

Code

247unsigned int CvDllGame::GetVariableCitySizeFromPopulation(unsigned int nPopulation)248{249	return m_pGame->GetVariableCitySizeFromPopulation(nPopulation);250}

Calls