Bazaar developer reference

CvGame::incrementBuildingClassCreatedCount(BuildingClassTypes)

Defined in
CvGame.cpp, line 7401
Class
CvGame
Hook name
CivHooks::CvGame_incrementBuildingClassCreatedCount

Hooks

static bool BeforeCvGame_incrementBuildingClassCreatedCount(CvGame* self, BuildingClassTypes eIndex);static void AfterCvGame_incrementBuildingClassCreatedCount(CvGame* self, BuildingClassTypes eIndex);static void ReplaceCvGame_incrementBuildingClassCreatedCount(void (*original)(CvGame*, BuildingClassTypes), CvGame* self, BuildingClassTypes eIndex);CivRegisterBefore<CivHooks::CvGame_incrementBuildingClassCreatedCount>(host, &BeforeCvGame_incrementBuildingClassCreatedCount);CivRegisterAfter<CivHooks::CvGame_incrementBuildingClassCreatedCount>(host, &AfterCvGame_incrementBuildingClassCreatedCount);CivRegisterReplace<CivHooks::CvGame_incrementBuildingClassCreatedCount>(host, &ReplaceCvGame_incrementBuildingClassCreatedCount);

Code

7401void CvGame::incrementBuildingClassCreatedCount(BuildingClassTypes eIndex)7402{7403	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");7404	CvAssertMsg(eIndex < GC.getNumBuildingClassInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");7405	m_paiBuildingClassCreatedCount[eIndex]++;7406}

Called by