Bazaar developer reference

CvGame::SetNumVictoryVotesTallied(int, bool)

Defined in
CvGame.cpp, line 5310
Class
CvGame
Hook name
CivHooks::CvGame_SetNumVictoryVotesTallied

Hooks

static bool BeforeCvGame_SetNumVictoryVotesTallied(CvGame* self, int iValue, bool arg1);static void AfterCvGame_SetNumVictoryVotesTallied(CvGame* self, int iValue, bool arg1);static void ReplaceCvGame_SetNumVictoryVotesTallied(void (*original)(CvGame*, int, bool), CvGame* self, int iValue, bool arg1);CivRegisterBefore<CivHooks::CvGame_SetNumVictoryVotesTallied>(host, &BeforeCvGame_SetNumVictoryVotesTallied);CivRegisterAfter<CivHooks::CvGame_SetNumVictoryVotesTallied>(host, &AfterCvGame_SetNumVictoryVotesTallied);CivRegisterReplace<CivHooks::CvGame_SetNumVictoryVotesTallied>(host, &ReplaceCvGame_SetNumVictoryVotesTallied);

Code

5308/// How many diplo votes tallied5309/// Preliminary votes will be counted, but will not trigger victory5310void CvGame::SetNumVictoryVotesTallied(int iValue, bool /*bPreliminaryVote*/)5311{5312	m_iNumVictoryVotesTallied = iValue;53135314	// Vote completed?5315	if(iValue > 0)5316	{5317		if(iValue == GetNumVictoryVotesExpected())5318		{5319		}5320	}5321}

Calls

Called by