Bazaar developer reference

CvSmallAwardInfo::CacheResults(Database::Results &, CvDatabaseUtility &)

Defined in
CvInfos.cpp, line 2708
Class
CvSmallAwardInfo
Hook name
CivHooks::CvSmallAwardInfo_CacheResults
Overrides
CvBaseInfo::CacheResults(Database::Results &, CvDatabaseUtility &)

Hooks

static bool BeforeCvSmallAwardInfo_CacheResults(CvSmallAwardInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility, bool& result);static void AfterCvSmallAwardInfo_CacheResults(CvSmallAwardInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility, bool& result);static bool ReplaceCvSmallAwardInfo_CacheResults(bool (*original)(CvSmallAwardInfo*, Database::Results&, CvDatabaseUtility&), CvSmallAwardInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility);CivRegisterBefore<CivHooks::CvSmallAwardInfo_CacheResults>(host, &BeforeCvSmallAwardInfo_CacheResults);CivRegisterAfter<CivHooks::CvSmallAwardInfo_CacheResults>(host, &AfterCvSmallAwardInfo_CacheResults);CivRegisterReplace<CivHooks::CvSmallAwardInfo_CacheResults>(host, &ReplaceCvSmallAwardInfo_CacheResults);

Code

2708bool CvSmallAwardInfo::CacheResults(Database::Results& kResults, CvDatabaseUtility& kUtility)2709{2710	if(!CvBaseInfo::CacheResults(kResults, kUtility))2711		return false;27122713	m_szNotification = kResults.GetText("Notification");2714	m_szTeamNotification = kResults.GetText("TeamNotification");27152716	m_iNumVictoryPoints = kResults.GetInt("NumVictoryPoints");27172718	m_iNumCities = kResults.GetInt("NumCities");2719	m_iCityPopulation = kResults.GetInt("CityPopulation");27202721	return true;2722}

Calls