Bazaar developer reference

CvGame::getStartEraInfo() const

Defined in
CvGame.cpp, line 7090
Class
CvGame
Hook name
CivHooks::CvGame_getStartEraInfo

Hooks

static bool BeforeCvGame_getStartEraInfo(const CvGame* self, CvEraInfo*& result);static void AfterCvGame_getStartEraInfo(const CvGame* self, CvEraInfo*& result);static CvEraInfo& ReplaceCvGame_getStartEraInfo(CvEraInfo& (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_getStartEraInfo>(host, &BeforeCvGame_getStartEraInfo);CivRegisterAfter<CivHooks::CvGame_getStartEraInfo>(host, &AfterCvGame_getStartEraInfo);CivRegisterReplace<CivHooks::CvGame_getStartEraInfo>(host, &ReplaceCvGame_getStartEraInfo);

Code

7090CvEraInfo& CvGame::getStartEraInfo() const7091{7092	CvEraInfo* pkStartEraInfo = GC.getEraInfo(getStartEra());7093	if(pkStartEraInfo == NULL)7094	{7095		const char* szError = "ERROR: Game does not contain valid start era!!";7096		GC.LogMessage(szError);7097		CvAssertMsg(false, szError);7098	}70997100#pragma warning ( push )7101#pragma warning ( disable : 6011 ) // Dereferencing NULL pointer7102	return *pkStartEraInfo;7103#pragma warning ( pop )7104}

Calls

Called by