Bazaar developer reference

CvDllGameContext::GetNumPlayerColorInfos()

Defined in
CvDllContext.cpp, line 348
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetNumPlayerColorInfos

Hooks

static bool BeforeCvDllGameContext_GetNumPlayerColorInfos(CvDllGameContext* self, int& result);static void AfterCvDllGameContext_GetNumPlayerColorInfos(CvDllGameContext* self, int& result);static int ReplaceCvDllGameContext_GetNumPlayerColorInfos(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_GetNumPlayerColorInfos::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetNumPlayerColorInfos);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNumPlayerColorInfos::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetNumPlayerColorInfos);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNumPlayerColorInfos::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetNumPlayerColorInfos);

Code

348int CvDllGameContext::GetNumPlayerColorInfos()349{350	return GC.GetNumPlayerColorInfos();351}

Calls