Bazaar developer reference

CvDllGameContext::GetTechInfo(TechTypes)

Defined in
CvDllContext.cpp, line 517
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetTechInfo

Hooks

static bool BeforeCvDllGameContext_GetTechInfo(CvDllGameContext* self, TechTypes eTech, ICvTechInfo1*& result);static void AfterCvDllGameContext_GetTechInfo(CvDllGameContext* self, TechTypes eTech, ICvTechInfo1*& result);static ICvTechInfo1* ReplaceCvDllGameContext_GetTechInfo(ICvTechInfo1* (*original)(CvDllGameContext*, TechTypes), CvDllGameContext* self, TechTypes eTech);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetTechInfo::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetTechInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetTechInfo::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetTechInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetTechInfo::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetTechInfo);

Code

517ICvTechInfo1* CvDllGameContext::GetTechInfo(TechTypes eTech)518{519	CvTechEntry* pkEntry = GC.getTechInfo(eTech);520	return (NULL != pkEntry)? new CvDllTechInfo(pkEntry) : NULL;521}

Calls