Bazaar developer reference

CvGame::IsResolutionPassed(ResolutionTypes, int) const

Defined in
CvGame.cpp, line 12219
Class
CvGame
Hook name
CivHooks::CvGame_IsResolutionPassed

Hooks

static bool BeforeCvGame_IsResolutionPassed(const CvGame* self, ResolutionTypes iResolutionType, int iChoice, bool& result);static void AfterCvGame_IsResolutionPassed(const CvGame* self, ResolutionTypes iResolutionType, int iChoice, bool& result);static bool ReplaceCvGame_IsResolutionPassed(bool (*original)(const CvGame*, ResolutionTypes, int), const CvGame* self, ResolutionTypes iResolutionType, int iChoice);CivRegisterBefore<CivHooks::CvGame_IsResolutionPassed>(host, &BeforeCvGame_IsResolutionPassed);CivRegisterAfter<CivHooks::CvGame_IsResolutionPassed>(host, &AfterCvGame_IsResolutionPassed);CivRegisterReplace<CivHooks::CvGame_IsResolutionPassed>(host, &ReplaceCvGame_IsResolutionPassed);

Code

12219bool CvGame::IsResolutionPassed(ResolutionTypes iResolutionType, int iChoice) const12220{12221	CvGameLeagues* pGameLeagues = GC.getGame().GetGameLeagues();1222212223	if (pGameLeagues->GetNumActiveLeagues() > 0) {12224		CvLeague* pLeague = pGameLeagues->GetActiveLeague();12225		if (pLeague) {12226			return pLeague->IsActiveResolution(iResolutionType, iChoice);12227		}12228	}1222912230	return false;12231}

Calls

Called by