CvLeague::NotifySessionDone()
- Defined in
- CvVotingClasses.cpp, line 5834
- Class
- CvLeague
- Hook name
CivHooks::CvLeague_NotifySessionDone
Hooks
static bool BeforeCvLeague_NotifySessionDone(CvLeague* self);static void AfterCvLeague_NotifySessionDone(CvLeague* self);static void ReplaceCvLeague_NotifySessionDone(void (*original)(CvLeague*), CvLeague* self);CivRegisterBefore<CivHooks::CvLeague_NotifySessionDone>(host, &BeforeCvLeague_NotifySessionDone);CivRegisterAfter<CivHooks::CvLeague_NotifySessionDone>(host, &AfterCvLeague_NotifySessionDone);CivRegisterReplace<CivHooks::CvLeague_NotifySessionDone>(host, &ReplaceCvLeague_NotifySessionDone);
Code
5833// Should be called before the list of proposals is resolved and cleared5834void CvLeague::NotifySessionDone()5835{5836 for (EnactProposalList::iterator it = m_vEnactProposals.begin(); it != m_vEnactProposals.end(); it++)5837 {5838 NotifyProposalResult(it);5839 }5840 for (RepealProposalList::iterator it = m_vRepealProposals.begin(); it != m_vRepealProposals.end(); it++)5841 {5842 NotifyProposalResult(it);5843 }5844}
Calls
BaseVector::beginBaseVector::beginBaseVector::endBaseVector::end- CvLeague::NotifyProposalResult(CvEnactProposal *)
- CvLeague::NotifyProposalResult(CvRepealProposal *)