Bazaar developer reference

CvDllGameContext::GetNumBuildingInfos()

Defined in
CvDllContext.cpp, line 288
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetNumBuildingInfos

Hooks

static bool BeforeCvDllGameContext_GetNumBuildingInfos(CvDllGameContext* self, int& result);static void AfterCvDllGameContext_GetNumBuildingInfos(CvDllGameContext* self, int& result);static int ReplaceCvDllGameContext_GetNumBuildingInfos(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_GetNumBuildingInfos::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetNumBuildingInfos);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNumBuildingInfos::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetNumBuildingInfos);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNumBuildingInfos::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetNumBuildingInfos);

Code

288int CvDllGameContext::GetNumBuildingInfos()289{290	return GC.getNumBuildingInfos();291}

Calls