Bazaar developer reference

CvDllGameContext::GetInterfaceModeInfo(InterfaceModeTypes)

Defined in
CvDllContext.cpp, line 457
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetInterfaceModeInfo

Hooks

static bool BeforeCvDllGameContext_GetInterfaceModeInfo(CvDllGameContext* self, InterfaceModeTypes e, ICvInterfaceModeInfo1*& result);static void AfterCvDllGameContext_GetInterfaceModeInfo(CvDllGameContext* self, InterfaceModeTypes e, ICvInterfaceModeInfo1*& result);static ICvInterfaceModeInfo1* ReplaceCvDllGameContext_GetInterfaceModeInfo(ICvInterfaceModeInfo1* (*original)(CvDllGameContext*, InterfaceModeTypes), CvDllGameContext* self, InterfaceModeTypes e);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetInterfaceModeInfo::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetInterfaceModeInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetInterfaceModeInfo::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetInterfaceModeInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetInterfaceModeInfo::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetInterfaceModeInfo);

Code

457ICvInterfaceModeInfo1* CvDllGameContext::GetInterfaceModeInfo(InterfaceModeTypes e)458{459	CvInterfaceModeInfo* pkInfo = GC.getInterfaceModeInfo(e);460	return (NULL != pkInfo)? new CvDllInterfaceModeInfo(pkInfo) : NULL;461}

Calls