Bazaar developer reference

CvDllPreGame::SetMapOption(const char *, int)

Defined in
CvDllPreGame.cpp, line 830
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_SetMapOption

Hooks

static bool BeforeCvDllPreGame_SetMapOption(CvDllPreGame* self, const char* szOptionName, int iValue, bool& result);static void AfterCvDllPreGame_SetMapOption(CvDllPreGame* self, const char* szOptionName, int iValue, bool& result);static bool ReplaceCvDllPreGame_SetMapOption(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_SetMapOption::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_SetMapOption);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_SetMapOption::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_SetMapOption);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_SetMapOption::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_SetMapOption);

Code

830bool CvDllPreGame::SetMapOption(const char* szOptionName, int iValue)831{832	return CvPreGame::SetMapOption(szOptionName, iValue);833}

Calls