Bazaar developer reference

CvDllGameContext::GetNumCivilizationInfos()

Defined in
CvDllContext.cpp, line 293
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetNumCivilizationInfos

Hooks

static bool BeforeCvDllGameContext_GetNumCivilizationInfos(CvDllGameContext* self, int& result);static void AfterCvDllGameContext_GetNumCivilizationInfos(CvDllGameContext* self, int& result);static int ReplaceCvDllGameContext_GetNumCivilizationInfos(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_GetNumCivilizationInfos::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetNumCivilizationInfos);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNumCivilizationInfos::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetNumCivilizationInfos);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNumCivilizationInfos::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetNumCivilizationInfos);

Code

293int CvDllGameContext::GetNumCivilizationInfos()294{295	return GC.getNumCivilizationInfos();296}

Calls