Bazaar developer reference

CvDllPreGame::setCustomWorldSize(int, int, int, int)

Defined in
CvDllPreGame.cpp, line 665
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_setCustomWorldSize

Hooks

static bool BeforeCvDllPreGame_setCustomWorldSize(CvDllPreGame* self, int iWidth, int iHeight, int iPlayers, int iMinorCivs);static void AfterCvDllPreGame_setCustomWorldSize(CvDllPreGame* self, int iWidth, int iHeight, int iPlayers, int iMinorCivs);static void ReplaceCvDllPreGame_setCustomWorldSize(void (*original)(CvDllPreGame*, int, int, int, int), CvDllPreGame* self, int iWidth, int iHeight, int iPlayers, int iMinorCivs);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setCustomWorldSize::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_setCustomWorldSize);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setCustomWorldSize::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_setCustomWorldSize);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setCustomWorldSize::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_setCustomWorldSize);

Code

665void CvDllPreGame::setCustomWorldSize(int iWidth, int iHeight, int iPlayers, int iMinorCivs)666{667	CvPreGame::setCustomWorldSize(iWidth, iHeight, iPlayers, iMinorCivs);668}

Calls