Bazaar developer reference

CvDllGameContext::GetNumColorInfos()

Defined in
CvDllContext.cpp, line 303
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetNumColorInfos

Hooks

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

Code

303int CvDllGameContext::GetNumColorInfos()304{305	return GC.GetNumColorInfos();306}

Calls