Bazaar developer reference

CvDllGameContext::GetHandicapInfo(HandicapTypes)

Defined in
CvDllContext.cpp, line 451
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetHandicapInfo

Hooks

static bool BeforeCvDllGameContext_GetHandicapInfo(CvDllGameContext* self, HandicapTypes eHandicapNum, ICvHandicapInfo1*& result);static void AfterCvDllGameContext_GetHandicapInfo(CvDllGameContext* self, HandicapTypes eHandicapNum, ICvHandicapInfo1*& result);static ICvHandicapInfo1* ReplaceCvDllGameContext_GetHandicapInfo(ICvHandicapInfo1* (*original)(CvDllGameContext*, HandicapTypes), CvDllGameContext* self, HandicapTypes eHandicapNum);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetHandicapInfo::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetHandicapInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetHandicapInfo::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetHandicapInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetHandicapInfo::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetHandicapInfo);

Code

451ICvHandicapInfo1* CvDllGameContext::GetHandicapInfo(HandicapTypes eHandicapNum)452{453	CvHandicapInfo* pkInfo = GC.getHandicapInfo(eHandicapNum);454	return (NULL != pkInfo)? new CvDllHandicapInfo(pkInfo) : NULL;455}

Calls