Bazaar developer reference

CvDllGameContext::GetSingleton()

Defined in
CvDllContext.cpp, line 173
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetSingleton

Hooks

static bool BeforeCvDllGameContext_GetSingleton(CvDllGameContext*& result);static void AfterCvDllGameContext_GetSingleton(CvDllGameContext*& result);static CvDllGameContext* ReplaceCvDllGameContext_GetSingleton(CvDllGameContext* (*original)());// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetSingleton::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetSingleton);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetSingleton::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetSingleton);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetSingleton::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetSingleton);

Code

173CvDllGameContext* CvDllGameContext::GetSingleton()174{175	return s_pSingleton;176}

Called by