Bazaar developer reference

CvDllGameContext::GetGameAsynch()

Defined in
CvDllContext.cpp, line 226
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetGameAsynch

Hooks

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

Code

226ICvGameAsynch1* CvDllGameContext::GetGameAsynch()227{228	CvGame* pkGame = GC.getGamePointer();229	if(pkGame)230		return new CvDllGameAsynch(pkGame);231	return NULL;232}

Calls