Bazaar developer reference

CvDllPreGame::GetWorldInfo()

Defined in
CvDllPreGame.cpp, line 1060
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_GetWorldInfo

Hooks

static bool BeforeCvDllPreGame_GetWorldInfo(CvDllPreGame* self, ICvWorldInfo1*& result);static void AfterCvDllPreGame_GetWorldInfo(CvDllPreGame* self, ICvWorldInfo1*& result);static ICvWorldInfo1* ReplaceCvDllPreGame_GetWorldInfo(ICvWorldInfo1* (*original)(CvDllPreGame*), CvDllPreGame* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetWorldInfo::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_GetWorldInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetWorldInfo::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_GetWorldInfo);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetWorldInfo::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_GetWorldInfo);

Code

1060ICvWorldInfo1* CvDllPreGame::GetWorldInfo()1061{1062	const CvWorldInfo& kWorldInfo = CvPreGame::worldInfo();1063	const CvWorldInfo* pWorldInfo = &(kWorldInfo);1064	return new CvDllWorldInfo(const_cast<CvWorldInfo*>(pWorldInfo));1065}

Calls