Bazaar developer reference

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

Defined in
CvInfos.cpp, line 2761
Class
CvHurryInfo
Hook name
CivHooks::CvHurryInfo_CacheResults
Overrides
CvBaseInfo::CacheResults(Database::Results &, CvDatabaseUtility &)

Hooks

static bool BeforeCvHurryInfo_CacheResults(CvHurryInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility, bool& result);static void AfterCvHurryInfo_CacheResults(CvHurryInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility, bool& result);static bool ReplaceCvHurryInfo_CacheResults(bool (*original)(CvHurryInfo*, Database::Results&, CvDatabaseUtility&), CvHurryInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility);CivRegisterBefore<CivHooks::CvHurryInfo_CacheResults>(host, &BeforeCvHurryInfo_CacheResults);CivRegisterAfter<CivHooks::CvHurryInfo_CacheResults>(host, &AfterCvHurryInfo_CacheResults);CivRegisterReplace<CivHooks::CvHurryInfo_CacheResults>(host, &ReplaceCvHurryInfo_CacheResults);

Code

2761bool CvHurryInfo::CacheResults(Database::Results& kResults, CvDatabaseUtility& kUtility)2762{2763	if(!CvBaseInfo::CacheResults(kResults, kUtility))2764		return false;27652766	m_iGoldPerProduction = kResults.GetInt("GoldPerProduction");2767	m_iProductionPerPopulation = kResults.GetInt("ProductionPerPopulation");2768	m_iGoldPerBeaker = kResults.GetInt("GoldPerBeaker");2769	m_iGoldPerCulture = kResults.GetInt("GoldPerCulture");27702771	const char* szPolicyPrereq = kResults.GetText("PolicyPrereq");2772	m_iPolicyPrereq = GC.getInfoTypeForString(szPolicyPrereq, true);27732774	return true;2775}

Calls