Bazaar developer reference

CvDllGameContext::GetPlayerColorInfo(PlayerColorTypes)

Defined in
CvDllContext.cpp, line 487
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetPlayerColorInfo

Hooks

static bool BeforeCvDllGameContext_GetPlayerColorInfo(CvDllGameContext* self, PlayerColorTypes e, ICvPlayerColorInfo1*& result);static void AfterCvDllGameContext_GetPlayerColorInfo(CvDllGameContext* self, PlayerColorTypes e, ICvPlayerColorInfo1*& result);static ICvPlayerColorInfo1* ReplaceCvDllGameContext_GetPlayerColorInfo(ICvPlayerColorInfo1* (*original)(CvDllGameContext*, PlayerColorTypes), CvDllGameContext* self, PlayerColorTypes e);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetPlayerColorInfo::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetPlayerColorInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetPlayerColorInfo::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetPlayerColorInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetPlayerColorInfo::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetPlayerColorInfo);

Code

487ICvPlayerColorInfo1* CvDllGameContext::GetPlayerColorInfo(PlayerColorTypes e)488{489	CvPlayerColorInfo* pkInfo = GC.GetPlayerColorInfo(e);490	return (NULL != pkInfo)? new CvDllPlayerColorInfo(pkInfo) : NULL;491}

Calls