Bazaar developer reference

CvGame::getProjectCreatedCount(ProjectTypes)

Defined in
CvGame.cpp, line 7410
Class
CvGame
Hook name
CivHooks::CvGame_getProjectCreatedCount

Hooks

static bool BeforeCvGame_getProjectCreatedCount(CvGame* self, ProjectTypes eIndex, int& result);static void AfterCvGame_getProjectCreatedCount(CvGame* self, ProjectTypes eIndex, int& result);static int ReplaceCvGame_getProjectCreatedCount(int (*original)(CvGame*, ProjectTypes), CvGame* self, ProjectTypes eIndex);CivRegisterBefore<CivHooks::CvGame_getProjectCreatedCount>(host, &BeforeCvGame_getProjectCreatedCount);CivRegisterAfter<CivHooks::CvGame_getProjectCreatedCount>(host, &AfterCvGame_getProjectCreatedCount);CivRegisterReplace<CivHooks::CvGame_getProjectCreatedCount>(host, &ReplaceCvGame_getProjectCreatedCount);

Code

7410int CvGame::getProjectCreatedCount(ProjectTypes eIndex)7411{7412	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");7413	CvAssertMsg(eIndex < GC.getNumProjectInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");7414	return m_paiProjectCreatedCount[eIndex];7415}

Called by