Bazaar developer reference

CvPreGame::climateInfo()

Defined in
CvPreGame.cpp, line 792
Hook name
CivHooks::CvPreGame_climateInfo

Hooks

static bool BeforeCvPreGame_climateInfo(const CvClimateInfo*& result);static void AfterCvPreGame_climateInfo(const CvClimateInfo*& result);static const CvClimateInfo& ReplaceCvPreGame_climateInfo(const CvClimateInfo& (*original)());CivRegisterBefore<CivHooks::CvPreGame_climateInfo>(host, &BeforeCvPreGame_climateInfo);CivRegisterAfter<CivHooks::CvPreGame_climateInfo>(host, &AfterCvPreGame_climateInfo);CivRegisterReplace<CivHooks::CvPreGame_climateInfo>(host, &ReplaceCvPreGame_climateInfo);

Code

792const CvClimateInfo& climateInfo()793{794	if(s_climate != s_climateInfo.get().GetID())795	{796		Database::SingleResult kResult;797		DB.SelectAt(kResult, "Climates", s_climate);798		s_climateInfo.dirtyGet().CacheResult(kResult);799	}800	return s_climateInfo;801}

Calls

Called by