Bazaar developer reference

CvDllPreGame::GetMapOption(const char *, int &)

Defined in
CvDllPreGame.cpp, line 254
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_GetMapOption_with_const_char_int

Hooks

static bool BeforeCvDllPreGame_GetMapOption_with_const_char_int(CvDllPreGame* self, const char* szOptionName, int& iValue, bool& result);static void AfterCvDllPreGame_GetMapOption_with_const_char_int(CvDllPreGame* self, const char* szOptionName, int& iValue, bool& result);static bool ReplaceCvDllPreGame_GetMapOption_with_const_char_int(bool (*original)(CvDllPreGame*, const char*, int&), CvDllPreGame* self, const char* szOptionName, int& iValue);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetMapOption_with_const_char_int::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_GetMapOption_with_const_char_int);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetMapOption_with_const_char_int::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_GetMapOption_with_const_char_int);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetMapOption_with_const_char_int::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_GetMapOption_with_const_char_int);

Code

254bool CvDllPreGame::GetMapOption(const char* szOptionName, int& iValue)255{256	return CvPreGame::GetMapOption(szOptionName, iValue);257}

Calls