Bazaar developer reference

CvPreGame::setSeaLevel(const CvString &)

Defined in
CvPreGame.cpp, line 2933
Hook name
CivHooks::CvPreGame_setSeaLevel_with_const_CvString

Hooks

static bool BeforeCvPreGame_setSeaLevel_with_const_CvString(const CvString& s);static void AfterCvPreGame_setSeaLevel_with_const_CvString(const CvString& s);static void ReplaceCvPreGame_setSeaLevel_with_const_CvString(void (*original)(const CvString&), const CvString& s);CivRegisterBefore<CivHooks::CvPreGame_setSeaLevel_with_const_CvString>(host, &BeforeCvPreGame_setSeaLevel_with_const_CvString);CivRegisterAfter<CivHooks::CvPreGame_setSeaLevel_with_const_CvString>(host, &AfterCvPreGame_setSeaLevel_with_const_CvString);CivRegisterReplace<CivHooks::CvPreGame_setSeaLevel_with_const_CvString>(host, &ReplaceCvPreGame_setSeaLevel_with_const_CvString);

Code

2933void setSeaLevel(const CvString& s)2934{2935	//Query2936	Database::SingleResult kResult;2937	DB.SelectAt(kResult, "SeaLevels", "Type", s.c_str());2938	s_seaLevelInfo.dirtyGet().CacheResult(kResult);29392940	s_seaLevel = (SeaLevelTypes)s_seaLevelInfo.get().GetID();2941}

Calls

Called by