Bazaar developer reference

CvDllGameContext::GetInfoTypeForString(const char *, bool) const

Defined in
CvDllContext.cpp, line 253
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetInfoTypeForString

Hooks

static bool BeforeCvDllGameContext_GetInfoTypeForString(const CvDllGameContext* self, const char* szType, bool hideAssert, int& result);static void AfterCvDllGameContext_GetInfoTypeForString(const CvDllGameContext* self, const char* szType, bool hideAssert, int& result);static int ReplaceCvDllGameContext_GetInfoTypeForString(int (*original)(const CvDllGameContext*, const char*, bool), const CvDllGameContext* self, const char* szType, bool hideAssert);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetInfoTypeForString::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetInfoTypeForString);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetInfoTypeForString::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetInfoTypeForString);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetInfoTypeForString::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetInfoTypeForString);

Code

253int CvDllGameContext::GetInfoTypeForString(const char* szType, bool hideAssert) const254{255	return GC.getInfoTypeForString(szType, hideAssert);256}

Calls