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
- CvBaseInfo::CacheResult(Database::Results &)
- CvBaseInfo::GetID() const
- CvGlobals::GetGameDatabase()
Database::Connection::SelectAtDatabase::SingleResult::SingleResultFAutoVariable::dirtyGetFAutoVariable::getFAutoVariable::operator const ClimateTypes &FAutoVariable::operator const CvClimateInfo &