Bazaar developer reference

CvDllGameContext::GetNumTechInfos()

Defined in
CvDllContext.cpp, line 373
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetNumTechInfos

Hooks

static bool BeforeCvDllGameContext_GetNumTechInfos(CvDllGameContext* self, int& result);static void AfterCvDllGameContext_GetNumTechInfos(CvDllGameContext* self, int& result);static int ReplaceCvDllGameContext_GetNumTechInfos(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_GetNumTechInfos::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetNumTechInfos);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNumTechInfos::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetNumTechInfos);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNumTechInfos::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetNumTechInfos);

Code

373int CvDllGameContext::GetNumTechInfos()374{375	return GC.getNumTechInfos();376}

Calls