Bazaar developer reference

CvDllGameContext::GetNumPlayableMinorCivs()

Defined in
CvDllContext.cpp, line 278
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetNumPlayableMinorCivs

Hooks

static bool BeforeCvDllGameContext_GetNumPlayableMinorCivs(CvDllGameContext* self, int& result);static void AfterCvDllGameContext_GetNumPlayableMinorCivs(CvDllGameContext* self, int& result);static int ReplaceCvDllGameContext_GetNumPlayableMinorCivs(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_GetNumPlayableMinorCivs::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetNumPlayableMinorCivs);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNumPlayableMinorCivs::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetNumPlayableMinorCivs);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNumPlayableMinorCivs::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetNumPlayableMinorCivs);

Code

278int CvDllGameContext::GetNumPlayableMinorCivs()279{280	return GC.GetNumPlayableMinorCivs();281}

Calls