Bazaar developer reference

CvDllGameContext::GetInfoTypeForHash(uint, bool) const

Defined in
CvDllContext.cpp, line 258
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetInfoTypeForHash

Hooks

static bool BeforeCvDllGameContext_GetInfoTypeForHash(const CvDllGameContext* self, uint uiHash, bool hideAssert, int& result);static void AfterCvDllGameContext_GetInfoTypeForHash(const CvDllGameContext* self, uint uiHash, bool hideAssert, int& result);static int ReplaceCvDllGameContext_GetInfoTypeForHash(int (*original)(const CvDllGameContext*, uint, bool), const CvDllGameContext* self, uint uiHash, bool hideAssert);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetInfoTypeForHash::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetInfoTypeForHash);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetInfoTypeForHash::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetInfoTypeForHash);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetInfoTypeForHash::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetInfoTypeForHash);

Code

258int CvDllGameContext::GetInfoTypeForHash(uint uiHash, bool hideAssert) const259{260	return GC.getInfoTypeForHash(uiHash, hideAssert);261}

Calls