CvPreGame::seaLevelInfo()
- Defined in
- CvPreGame.cpp, line 2250
- Hook name
CivHooks::CvPreGame_seaLevelInfo
Hooks
static bool BeforeCvPreGame_seaLevelInfo(const CvSeaLevelInfo*& result);static void AfterCvPreGame_seaLevelInfo(const CvSeaLevelInfo*& result);static const CvSeaLevelInfo& ReplaceCvPreGame_seaLevelInfo(const CvSeaLevelInfo& (*original)());CivRegisterBefore<CivHooks::CvPreGame_seaLevelInfo>(host, &BeforeCvPreGame_seaLevelInfo);CivRegisterAfter<CivHooks::CvPreGame_seaLevelInfo>(host, &AfterCvPreGame_seaLevelInfo);CivRegisterReplace<CivHooks::CvPreGame_seaLevelInfo>(host, &ReplaceCvPreGame_seaLevelInfo);
Code
2250const CvSeaLevelInfo& seaLevelInfo()2251{2252 if(s_seaLevel != s_seaLevelInfo.get().GetID())2253 {2254 Database::SingleResult kResult;2255 DB.SelectAt(kResult, "SeaLevels", s_seaLevel);2256 s_seaLevelInfo.dirtyGet().CacheResult(kResult);2257 }2258 return s_seaLevelInfo;2259}
Calls
- CvBaseInfo::CacheResult(Database::Results &)
- CvBaseInfo::GetID() const
- CvGlobals::GetGameDatabase()
Database::Connection::SelectAtDatabase::SingleResult::SingleResultFAutoVariable::dirtyGetFAutoVariable::getFAutoVariable::operator const CvSeaLevelInfo &FAutoVariable::operator const SeaLevelTypes &