Bazaar developer reference

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

Defined in
CvInfos.cpp, line 5713
Class
CvInterfaceModeInfo
Hook name
CivHooks::CvInterfaceModeInfo_CacheResults
Overrides
CvHotKeyInfo::CacheResults(Database::Results &, CvDatabaseUtility &)

Hooks

static bool BeforeCvInterfaceModeInfo_CacheResults(CvInterfaceModeInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility, bool& result);static void AfterCvInterfaceModeInfo_CacheResults(CvInterfaceModeInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility, bool& result);static bool ReplaceCvInterfaceModeInfo_CacheResults(bool (*original)(CvInterfaceModeInfo*, Database::Results&, CvDatabaseUtility&), CvInterfaceModeInfo* self, Database::Results& kResults, CvDatabaseUtility& kUtility);CivRegisterBefore<CivHooks::CvInterfaceModeInfo_CacheResults>(host, &BeforeCvInterfaceModeInfo_CacheResults);CivRegisterAfter<CivHooks::CvInterfaceModeInfo_CacheResults>(host, &AfterCvInterfaceModeInfo_CacheResults);CivRegisterReplace<CivHooks::CvInterfaceModeInfo_CacheResults>(host, &ReplaceCvInterfaceModeInfo_CacheResults);

Code

5713bool CvInterfaceModeInfo::CacheResults(Database::Results& kResults, CvDatabaseUtility& kUtility)5714{5715	if(!CvHotKeyInfo::CacheResults(kResults, kUtility))5716		return false;57175718	const char* szCursorType = kResults.GetText("CursorType");5719	m_iCursorIndex = GC.getInfoTypeForString(szCursorType, true);57205721	const char* szMission = kResults.GetText("Mission");5722	m_iMissionType = GC.getInfoTypeForString(szMission, true);57235724	m_bVisible			= kResults.GetBool("Visible");5725	m_bHighlightPlot	= kResults.GetBool("HighlightPlot");5726	m_bSelectType		= kResults.GetBool("SelectType");5727	m_bSelectAll		= kResults.GetBool("SelectAll");57285729	return true;5730}

Calls