Bazaar developer reference

CvDllGameContext::GetNotificationType(int) const

Defined in
CvDllContext.cpp, line 732
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetNotificationType

Hooks

static bool BeforeCvDllGameContext_GetNotificationType(const CvDllGameContext* self, int NotificationID, const char*& result);static void AfterCvDllGameContext_GetNotificationType(const CvDllGameContext* self, int NotificationID, const char*& result);static const char* ReplaceCvDllGameContext_GetNotificationType(const char* (*original)(const CvDllGameContext*, int), const CvDllGameContext* self, int NotificationID);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNotificationType::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetNotificationType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNotificationType::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetNotificationType);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetNotificationType::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetNotificationType);

Code

732const char* CvDllGameContext::GetNotificationType(int NotificationID) const733{734	CvNotificationXMLEntries* pkEntries = GC.GetNotificationEntries();735	if(pkEntries != NULL)736	{737		CvNotificationEntry* pkEntry = pkEntries->GetEntry(NotificationID);738		if(pkEntry != NULL)739			return pkEntry->GetTypeName();740	}741742	return NULL;743}

Calls