Bazaar developer reference

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

Defined in
CvInfos.cpp, line 932
Class
CvCommandInfo
Hook name
CivHooks::CvCommandInfo_CacheResults
Overrides
CvHotKeyInfo::CacheResults(Database::Results &, CvDatabaseUtility &)

Hooks

static bool BeforeCvCommandInfo_CacheResults(CvCommandInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility, bool& result);static void AfterCvCommandInfo_CacheResults(CvCommandInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility, bool& result);static bool ReplaceCvCommandInfo_CacheResults(bool (*original)(CvCommandInfo*, Database::Results&, CvDatabaseUtility&), CvCommandInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility);CivRegisterBefore<CivHooks::CvCommandInfo_CacheResults>(host, &BeforeCvCommandInfo_CacheResults);CivRegisterAfter<CivHooks::CvCommandInfo_CacheResults>(host, &AfterCvCommandInfo_CacheResults);CivRegisterReplace<CivHooks::CvCommandInfo_CacheResults>(host, &ReplaceCvCommandInfo_CacheResults);

Code

932bool CvCommandInfo::CacheResults(Database::Results& kResults, CvDatabaseUtility& kUtility)933{934	if(!CvHotKeyInfo::CacheResults(kResults, kUtility))935		return false;936937	const char* szAutomate = kResults.GetText("Automate");938	if(szAutomate)939		setAutomate(GC.getInfoTypeForString(szAutomate, true));940941	m_bConfirmCommand = kResults.GetBool("ConfirmCommand");942	m_bVisible = kResults.GetBool("Visible");943	m_bAll = kResults.GetBool("All");944945	return true;946}

Calls