Bazaar developer reference

CvNotificationXMLEntries::GetByString(const char *)

Defined in
CvNotificationClasses.cpp, line 98
Class
CvNotificationXMLEntries
Hook name
CivHooks::CvNotificationXMLEntries_GetByString

Hooks

static bool BeforeCvNotificationXMLEntries_GetByString(CvNotificationXMLEntries* self, const char* pszName, CvNotificationEntry*& result);static void AfterCvNotificationXMLEntries_GetByString(CvNotificationXMLEntries* self, const char* pszName, CvNotificationEntry*& result);static CvNotificationEntry* ReplaceCvNotificationXMLEntries_GetByString(CvNotificationEntry* (*original)(CvNotificationXMLEntries*, const char*), CvNotificationXMLEntries* self, const char* pszName);CivRegisterBefore<CivHooks::CvNotificationXMLEntries_GetByString>(host, &BeforeCvNotificationXMLEntries_GetByString);CivRegisterAfter<CivHooks::CvNotificationXMLEntries_GetByString>(host, &AfterCvNotificationXMLEntries_GetByString);CivRegisterReplace<CivHooks::CvNotificationXMLEntries_GetByString>(host, &ReplaceCvNotificationXMLEntries_GetByString);

Code

97// Get an entry by name98CvNotificationEntry* CvNotificationXMLEntries::GetByString(const char* pszName)99{100	if (pszName && pszName[0] != 0)101		return GetByID(FString::Hash(pszName));102	return NULL;103}

Calls