Bazaar developer reference

CvDllPreGame::SetGameOption(const char *, int)

Defined in
CvDllPreGame.cpp, line 735
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_SetGameOption

Hooks

static bool BeforeCvDllPreGame_SetGameOption(CvDllPreGame* self, const char* szOptionName, int iValue, bool& result);static void AfterCvDllPreGame_SetGameOption(CvDllPreGame* self, const char* szOptionName, int iValue, bool& result);static bool ReplaceCvDllPreGame_SetGameOption(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_SetGameOption::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_SetGameOption);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_SetGameOption::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_SetGameOption);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_SetGameOption::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_SetGameOption);

Code

735bool CvDllPreGame::SetGameOption(const char* szOptionName, int iValue)736{737	return CvPreGame::SetGameOption(szOptionName, iValue);738}

Calls