Bazaar developer reference

CvGame::incrementProjectCreatedCount(ProjectTypes, int)

Defined in
CvGame.cpp, line 7436
Class
CvGame
Hook name
CivHooks::CvGame_incrementProjectCreatedCount

Hooks

static bool BeforeCvGame_incrementProjectCreatedCount(CvGame* self, ProjectTypes eIndex, int iExtra);static void AfterCvGame_incrementProjectCreatedCount(CvGame* self, ProjectTypes eIndex, int iExtra);static void ReplaceCvGame_incrementProjectCreatedCount(void (*original)(CvGame*, ProjectTypes, int), CvGame* self, ProjectTypes eIndex, int iExtra);CivRegisterBefore<CivHooks::CvGame_incrementProjectCreatedCount>(host, &BeforeCvGame_incrementProjectCreatedCount);CivRegisterAfter<CivHooks::CvGame_incrementProjectCreatedCount>(host, &AfterCvGame_incrementProjectCreatedCount);CivRegisterReplace<CivHooks::CvGame_incrementProjectCreatedCount>(host, &ReplaceCvGame_incrementProjectCreatedCount);

Code

7436void CvGame::incrementProjectCreatedCount(ProjectTypes eIndex, int iExtra)7437{7438	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");7439	CvAssertMsg(eIndex < GC.getNumProjectInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");7440	m_paiProjectCreatedCount[eIndex] += iExtra;7441}

Called by