Bazaar developer reference

CvLeague::SetInSession(bool)

Defined in
CvVotingClasses.cpp, line 2039
Class
CvLeague
Hook name
CivHooks::CvLeague_SetInSession

Hooks

static bool BeforeCvLeague_SetInSession(CvLeague* self, bool bInSession);static void AfterCvLeague_SetInSession(CvLeague* self, bool bInSession);static void ReplaceCvLeague_SetInSession(void (*original)(CvLeague*, bool), CvLeague* self, bool bInSession);CivRegisterBefore<CivHooks::CvLeague_SetInSession>(host, &BeforeCvLeague_SetInSession);CivRegisterAfter<CivHooks::CvLeague_SetInSession>(host, &AfterCvLeague_SetInSession);CivRegisterReplace<CivHooks::CvLeague_SetInSession>(host, &ReplaceCvLeague_SetInSession);

Code

2039void CvLeague::SetInSession(bool bInSession)2040{2041	m_bInSession = bInSession;2042	if (bInSession)2043	{2044	}2045	else2046	{2047		if (m_eCurrentSpecialSession != NO_LEAGUE_SPECIAL_SESSION)2048		{2049			m_eLastSpecialSession = m_eCurrentSpecialSession;2050		}2051		m_eCurrentSpecialSession = NO_LEAGUE_SPECIAL_SESSION;2052	}2053}

Called by