Bazaar developer reference

CvPreGame::worldInfo()

Defined in
CvPreGame.cpp, line 3182
Hook name
CivHooks::CvPreGame_worldInfo

Hooks

static bool BeforeCvPreGame_worldInfo(const CvWorldInfo*& result);static void AfterCvPreGame_worldInfo(const CvWorldInfo*& result);static const CvWorldInfo& ReplaceCvPreGame_worldInfo(const CvWorldInfo& (*original)());CivRegisterBefore<CivHooks::CvPreGame_worldInfo>(host, &BeforeCvPreGame_worldInfo);CivRegisterAfter<CivHooks::CvPreGame_worldInfo>(host, &AfterCvPreGame_worldInfo);CivRegisterReplace<CivHooks::CvPreGame_worldInfo>(host, &ReplaceCvPreGame_worldInfo);

Code

3182const CvWorldInfo& worldInfo()3183{3184	if(s_worldSize != s_worldInfo.get().GetID())3185	{3186		Database::SingleResult kResult;3187		DB.SelectAt(kResult, "Worlds", s_worldSize);3188		s_worldInfo.dirtyGet().CacheResult(kResult);3189	}3190	return s_worldInfo;3191}

Calls

Called by