Bazaar developer reference

CvNotificationXMLEntries::GetByID(uint)

Defined in
CvNotificationClasses.cpp, line 89
Class
CvNotificationXMLEntries
Hook name
CivHooks::CvNotificationXMLEntries_GetByID

Hooks

static bool BeforeCvNotificationXMLEntries_GetByID(CvNotificationXMLEntries* self, uint hHash, CvNotificationEntry*& result);static void AfterCvNotificationXMLEntries_GetByID(CvNotificationXMLEntries* self, uint hHash, CvNotificationEntry*& result);static CvNotificationEntry* ReplaceCvNotificationXMLEntries_GetByID(CvNotificationEntry* (*original)(CvNotificationXMLEntries*, uint), CvNotificationXMLEntries* self, uint hHash);CivRegisterBefore<CivHooks::CvNotificationXMLEntries_GetByID>(host, &BeforeCvNotificationXMLEntries_GetByID);CivRegisterAfter<CivHooks::CvNotificationXMLEntries_GetByID>(host, &AfterCvNotificationXMLEntries_GetByID);CivRegisterReplace<CivHooks::CvNotificationXMLEntries_GetByID>(host, &ReplaceCvNotificationXMLEntries_GetByID);

Code

88// Get an entry by ID (hash)89CvNotificationEntry* CvNotificationXMLEntries::GetByID(uint hHash)90{91	EntryHashTable::iterator itr = m_mEntries.find(hHash);92	if (itr != m_mEntries.end())93		return GetEntry((*itr).second);94	return NULL;95}

Calls

Called by