Bazaar developer reference

CvDllGameContext::GetCivilizationInfoIndex(const char *)

Defined in
CvDllContext.cpp, line 263
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetCivilizationInfoIndex

Hooks

static bool BeforeCvDllGameContext_GetCivilizationInfoIndex(CvDllGameContext* self, const char* pszType, CivilizationTypes& result);static void AfterCvDllGameContext_GetCivilizationInfoIndex(CvDllGameContext* self, const char* pszType, CivilizationTypes& result);static CivilizationTypes ReplaceCvDllGameContext_GetCivilizationInfoIndex(CivilizationTypes (*original)(CvDllGameContext*, const char*), CvDllGameContext* self, const char* pszType);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetCivilizationInfoIndex::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetCivilizationInfoIndex);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetCivilizationInfoIndex::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetCivilizationInfoIndex);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetCivilizationInfoIndex::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetCivilizationInfoIndex);

Code

263CivilizationTypes CvDllGameContext::GetCivilizationInfoIndex(const char* pszType)264{265	return GC.getCivilizationInfoIndex(pszType);266}

Calls