Bazaar developer reference

CvDllGameContext::Destroy()

Defined in
CvDllContext.cpp, line 128
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_Destroy

Hooks

static bool BeforeCvDllGameContext_Destroy(CvDllGameContext* self);static void AfterCvDllGameContext_Destroy(CvDllGameContext* self);static void ReplaceCvDllGameContext_Destroy(void (*original)(CvDllGameContext*), CvDllGameContext* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_Destroy::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_Destroy);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_Destroy::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_Destroy);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_Destroy::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_Destroy);

Code

128void CvDllGameContext::Destroy()129{130	//Do nothing, it's a singleton controlled by the DLL.131}