Bazaar developer reference

CvTeam::GetIgnoreWarningCount(TeamTypes)

Defined in
CvTeam.cpp, line 7346
Class
CvTeam
Hook name
CivHooks::CvTeam_GetIgnoreWarningCount

Hooks

static bool BeforeCvTeam_GetIgnoreWarningCount(CvTeam* self, TeamTypes eTeam, int& result);static void AfterCvTeam_GetIgnoreWarningCount(CvTeam* self, TeamTypes eTeam, int& result);static int ReplaceCvTeam_GetIgnoreWarningCount(int (*original)(CvTeam*, TeamTypes), CvTeam* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvTeam_GetIgnoreWarningCount>(host, &BeforeCvTeam_GetIgnoreWarningCount);CivRegisterAfter<CivHooks::CvTeam_GetIgnoreWarningCount>(host, &AfterCvTeam_GetIgnoreWarningCount);CivRegisterReplace<CivHooks::CvTeam_GetIgnoreWarningCount>(host, &ReplaceCvTeam_GetIgnoreWarningCount);

Code

7346int CvTeam::GetIgnoreWarningCount (TeamTypes eTeam)7347{7348	CvAssertMsg(eTeam != NO_TEAM, "GetIgnoreWarningCount got NO_TEAM passed to it");7349	if (eTeam == NO_TEAM)7350	{7351		return -1;7352	}73537354	return m_aiIgnoreWarningCount[eTeam];7355}

Calls