Bazaar developer reference

CvDllGameContext::GetPreGame()

Defined in
CvDllContext.cpp, line 213
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetPreGame

Hooks

static bool BeforeCvDllGameContext_GetPreGame(CvDllGameContext* self, ICvPreGame1*& result);static void AfterCvDllGameContext_GetPreGame(CvDllGameContext* self, ICvPreGame1*& result);static ICvPreGame1* ReplaceCvDllGameContext_GetPreGame(ICvPreGame1* (*original)(CvDllGameContext*), CvDllGameContext* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetPreGame::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetPreGame);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetPreGame::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetPreGame);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetPreGame::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetPreGame);

Code

213ICvPreGame1* CvDllGameContext::GetPreGame()214{215	return new CvDllPreGame();216}

Calls