Bazaar developer reference

CvDllGameContext::GetGameOptionInfo(GameOptionTypes)

Defined in
CvDllContext.cpp, line 439
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetGameOptionInfo

Hooks

static bool BeforeCvDllGameContext_GetGameOptionInfo(CvDllGameContext* self, GameOptionTypes eGameOptionNum, ICvGameOptionInfo1*& result);static void AfterCvDllGameContext_GetGameOptionInfo(CvDllGameContext* self, GameOptionTypes eGameOptionNum, ICvGameOptionInfo1*& result);static ICvGameOptionInfo1* ReplaceCvDllGameContext_GetGameOptionInfo(ICvGameOptionInfo1* (*original)(CvDllGameContext*, GameOptionTypes), CvDllGameContext* self, GameOptionTypes eGameOptionNum);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetGameOptionInfo::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetGameOptionInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetGameOptionInfo::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetGameOptionInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetGameOptionInfo::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetGameOptionInfo);

Code

439ICvGameOptionInfo1* CvDllGameContext::GetGameOptionInfo(GameOptionTypes eGameOptionNum)440{441	CvGameOptionInfo* pkInfo = GC.getGameOptionInfo(eGameOptionNum);442	return (NULL != pkInfo)? new CvDllGameOptionInfo(pkInfo) : NULL;443}

Calls