Bazaar developer reference

CvLeague::Init(LeagueSpecialSessionTypes)

Defined in
CvVotingClasses.cpp, line 1883
Class
CvLeague
Hook name
CivHooks::CvLeague_Init

Hooks

static bool BeforeCvLeague_Init(CvLeague* self, LeagueSpecialSessionTypes eGoverningSpecialSession);static void AfterCvLeague_Init(CvLeague* self, LeagueSpecialSessionTypes eGoverningSpecialSession);static void ReplaceCvLeague_Init(void (*original)(CvLeague*, LeagueSpecialSessionTypes), CvLeague* self, LeagueSpecialSessionTypes eGoverningSpecialSession);CivRegisterBefore<CivHooks::CvLeague_Init>(host, &BeforeCvLeague_Init);CivRegisterAfter<CivHooks::CvLeague_Init>(host, &AfterCvLeague_Init);CivRegisterReplace<CivHooks::CvLeague_Init>(host, &ReplaceCvLeague_Init);

Code

1883void CvLeague::Init(LeagueSpecialSessionTypes eGoverningSpecialSession)1884{1885	CvAssertMsg(m_eID != NO_LEAGUE, "Initializing a CvLeague without a proper ID. Please send Anton your save file and verison.");1886	CvAssert(eGoverningSpecialSession != NO_LEAGUE_SPECIAL_SESSION);1887	m_eLastSpecialSession = eGoverningSpecialSession; // Fake the last special session so we have data to inform the World Congress's status1888	AssignProposalPrivileges();1889	ResetTurnsUntilSession();1890}

Calls

Called by