Bazaar developer reference

CvDllGameContext::GetFeatureInfo(FeatureTypes)

Defined in
CvDllContext.cpp, line 433
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetFeatureInfo

Hooks

static bool BeforeCvDllGameContext_GetFeatureInfo(CvDllGameContext* self, FeatureTypes eFeatureNum, ICvFeatureInfo1*& result);static void AfterCvDllGameContext_GetFeatureInfo(CvDllGameContext* self, FeatureTypes eFeatureNum, ICvFeatureInfo1*& result);static ICvFeatureInfo1* ReplaceCvDllGameContext_GetFeatureInfo(ICvFeatureInfo1* (*original)(CvDllGameContext*, FeatureTypes), CvDllGameContext* self, FeatureTypes eFeatureNum);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetFeatureInfo::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetFeatureInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetFeatureInfo::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetFeatureInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetFeatureInfo::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetFeatureInfo);

Code

433ICvFeatureInfo1* CvDllGameContext::GetFeatureInfo(FeatureTypes eFeatureNum)434{435	CvFeatureInfo* pkInfo = GC.getFeatureInfo(eFeatureNum);436	return (NULL != pkInfo)? new CvDllFeatureInfo(pkInfo) : NULL;437}

Calls