Bazaar developer reference

CvGlobals::getVoteInfo(VoteTypes)

Defined in
CvGlobals.cpp, line 3301
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getVoteInfo_with_VoteTypes

Hooks

static bool BeforeCvGlobals_getVoteInfo_with_VoteTypes(CvGlobals* self, VoteTypes e, CvVoteInfo*& result);static void AfterCvGlobals_getVoteInfo_with_VoteTypes(CvGlobals* self, VoteTypes e, CvVoteInfo*& result);static CvVoteInfo* ReplaceCvGlobals_getVoteInfo_with_VoteTypes(CvVoteInfo* (*original)(CvGlobals*, VoteTypes), CvGlobals* self, VoteTypes e);CivRegisterBefore<CivHooks::CvGlobals_getVoteInfo_with_VoteTypes>(host, &BeforeCvGlobals_getVoteInfo_with_VoteTypes);CivRegisterAfter<CivHooks::CvGlobals_getVoteInfo_with_VoteTypes>(host, &AfterCvGlobals_getVoteInfo_with_VoteTypes);CivRegisterReplace<CivHooks::CvGlobals_getVoteInfo_with_VoteTypes>(host, &ReplaceCvGlobals_getVoteInfo_with_VoteTypes);

Code

3301CvVoteInfo* CvGlobals::getVoteInfo(VoteTypes e)3302{3303	CvAssert(e > -1);3304	CvAssert(e < GC.getNumVoteInfos());3305	if(e > -1 && e < (int)m_paVoteInfo.size())3306		return m_paVoteInfo[e];3307	else3308		return NULL;3309}

Calls

Called by