Bazaar developer reference

CvDllPreGame::GetMapOptionCount()

Defined in
CvDllPreGame.cpp, line 232
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_GetMapOptionCount

Hooks

static bool BeforeCvDllPreGame_GetMapOptionCount(CvDllPreGame* self, uint& result);static void AfterCvDllPreGame_GetMapOptionCount(CvDllPreGame* self, uint& result);static uint ReplaceCvDllPreGame_GetMapOptionCount(uint (*original)(CvDllPreGame*), CvDllPreGame* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetMapOptionCount::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_GetMapOptionCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetMapOptionCount::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_GetMapOptionCount);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetMapOptionCount::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_GetMapOptionCount);

Code

232uint CvDllPreGame::GetMapOptionCount()233{234	return CvPreGame::GetMapOptions().size();235}

Calls