Bazaar developer reference

CvGlobals::GetNumPlayerColorInfos()

Defined in
CvGlobals.cpp, line 2653
Class
CvGlobals
Hook name
CivHooks::CvGlobals_GetNumPlayerColorInfos

Hooks

static bool BeforeCvGlobals_GetNumPlayerColorInfos(CvGlobals* self, int& result);static void AfterCvGlobals_GetNumPlayerColorInfos(CvGlobals* self, int& result);static int ReplaceCvGlobals_GetNumPlayerColorInfos(int (*original)(CvGlobals*), CvGlobals* self);CivRegisterBefore<CivHooks::CvGlobals_GetNumPlayerColorInfos>(host, &BeforeCvGlobals_GetNumPlayerColorInfos);CivRegisterAfter<CivHooks::CvGlobals_GetNumPlayerColorInfos>(host, &AfterCvGlobals_GetNumPlayerColorInfos);CivRegisterReplace<CivHooks::CvGlobals_GetNumPlayerColorInfos>(host, &ReplaceCvGlobals_GetNumPlayerColorInfos);

Code

2653int CvGlobals::GetNumPlayerColorInfos()2654{2655	return (int)m_paPlayerColorInfo.size();2656}

Calls

Called by