Bazaar developer reference

CvGame::getBuildingClassCreatedCount(BuildingClassTypes)

Defined in
CvGame.cpp, line 7367
Class
CvGame
Hook name
CivHooks::CvGame_getBuildingClassCreatedCount

Hooks

static bool BeforeCvGame_getBuildingClassCreatedCount(CvGame* self, BuildingClassTypes eIndex, int& result);static void AfterCvGame_getBuildingClassCreatedCount(CvGame* self, BuildingClassTypes eIndex, int& result);static int ReplaceCvGame_getBuildingClassCreatedCount(int (*original)(CvGame*, BuildingClassTypes), CvGame* self, BuildingClassTypes eIndex);CivRegisterBefore<CivHooks::CvGame_getBuildingClassCreatedCount>(host, &BeforeCvGame_getBuildingClassCreatedCount);CivRegisterAfter<CivHooks::CvGame_getBuildingClassCreatedCount>(host, &AfterCvGame_getBuildingClassCreatedCount);CivRegisterReplace<CivHooks::CvGame_getBuildingClassCreatedCount>(host, &ReplaceCvGame_getBuildingClassCreatedCount);

Code

7367int CvGame::getBuildingClassCreatedCount(BuildingClassTypes eIndex)7368{7369	CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");7370	CvAssertMsg(eIndex < GC.getNumBuildingClassInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");7371	return m_paiBuildingClassCreatedCount[eIndex];7372}

Called by