Bazaar developer reference

CvDllGameContext::GetPlayerOptionInfo(PlayerOptionTypes)

Defined in
CvDllContext.cpp, line 493
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetPlayerOptionInfo

Hooks

static bool BeforeCvDllGameContext_GetPlayerOptionInfo(CvDllGameContext* self, PlayerOptionTypes ePlayerOptionNum, ICvPlayerOptionInfo1*& result);static void AfterCvDllGameContext_GetPlayerOptionInfo(CvDllGameContext* self, PlayerOptionTypes ePlayerOptionNum, ICvPlayerOptionInfo1*& result);static ICvPlayerOptionInfo1* ReplaceCvDllGameContext_GetPlayerOptionInfo(ICvPlayerOptionInfo1* (*original)(CvDllGameContext*, PlayerOptionTypes), CvDllGameContext* self, PlayerOptionTypes ePlayerOptionNum);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetPlayerOptionInfo::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetPlayerOptionInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetPlayerOptionInfo::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetPlayerOptionInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetPlayerOptionInfo::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetPlayerOptionInfo);

Code

493ICvPlayerOptionInfo1* CvDllGameContext::GetPlayerOptionInfo(PlayerOptionTypes ePlayerOptionNum)494{495	CvPlayerOptionInfo* pkInfo = GC.getPlayerOptionInfo(ePlayerOptionNum);496	return (NULL != pkInfo)? new CvDllPlayerOptionInfo(pkInfo) : NULL;497}

Calls