CvPreGame::setClimate(const CvString &)
- Defined in
- CvPreGame.cpp, line 2388
- Hook name
CivHooks::CvPreGame_setClimate_with_const_CvString
Hooks
static bool BeforeCvPreGame_setClimate_with_const_CvString(const CvString& c);static void AfterCvPreGame_setClimate_with_const_CvString(const CvString& c);static void ReplaceCvPreGame_setClimate_with_const_CvString(void (*original)(const CvString&), const CvString& c);CivRegisterBefore<CivHooks::CvPreGame_setClimate_with_const_CvString>(host, &BeforeCvPreGame_setClimate_with_const_CvString);CivRegisterAfter<CivHooks::CvPreGame_setClimate_with_const_CvString>(host, &AfterCvPreGame_setClimate_with_const_CvString);CivRegisterReplace<CivHooks::CvPreGame_setClimate_with_const_CvString>(host, &ReplaceCvPreGame_setClimate_with_const_CvString);
Code
2388void setClimate(const CvString& c)2389{2390 //Query2391 Database::SingleResult kResult;2392 DB.SelectAt(kResult, "Climates", "Type", c);2393 s_climateInfo.dirtyGet().CacheResult(kResult);23942395 s_climate = (ClimateTypes)s_climateInfo.get().GetID();2396}
Calls
- CvBaseInfo::CacheResult(Database::Results &)
- CvBaseInfo::GetID() const
- CvGlobals::GetGameDatabase()
CvString::operator const char *Database::Connection::SelectAtDatabase::SingleResult::SingleResultFAutoVariable::dirtyGetFAutoVariable::getFAutoVariable::operator=