Bazaar developer reference

CvDllNetMessageHandler::ResponseLeagueVoteRepeal(LeagueTypes, int, PlayerTypes, int, int)

Defined in
CvDllNetMessageHandler.cpp, line 463
Class
CvDllNetMessageHandler
Hook name
CivHooks::CvDllNetMessageHandler_ResponseLeagueVoteRepeal

Hooks

static bool BeforeCvDllNetMessageHandler_ResponseLeagueVoteRepeal(CvDllNetMessageHandler* self, LeagueTypes eLeague, int iResolutionID, PlayerTypes eVoter, int iNumVotes, int iChoice);static void AfterCvDllNetMessageHandler_ResponseLeagueVoteRepeal(CvDllNetMessageHandler* self, LeagueTypes eLeague, int iResolutionID, PlayerTypes eVoter, int iNumVotes, int iChoice);static void ReplaceCvDllNetMessageHandler_ResponseLeagueVoteRepeal(void (*original)(CvDllNetMessageHandler*, LeagueTypes, int, PlayerTypes, int, int), CvDllNetMessageHandler* self, LeagueTypes eLeague, int iResolutionID, PlayerTypes eVoter, int iNumVotes, int iChoice);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetMessageHandler_ResponseLeagueVoteRepeal::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllNetMessageHandler_ResponseLeagueVoteRepeal);host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetMessageHandler_ResponseLeagueVoteRepeal::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllNetMessageHandler_ResponseLeagueVoteRepeal);host->RegisterHook(host->pluginIndex, CivHooks::CvDllNetMessageHandler_ResponseLeagueVoteRepeal::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllNetMessageHandler_ResponseLeagueVoteRepeal);

Code

463void CvDllNetMessageHandler::ResponseLeagueVoteRepeal(LeagueTypes eLeague, int iResolutionID, PlayerTypes eVoter, int iNumVotes, int iChoice)464{465	CvAssertMsg(eLeague != NO_LEAGUE, "eLeague invalid");466	CvAssertMsg(eVoter != NO_PLAYER, "eVoter invalid");467468	CvLeague* pLeague = GC.getGame().GetGameLeagues()->GetLeague(eLeague);469	CvAssertMsg(pLeague->CanVote(eVoter), "eVoter not allowed to vote. Please send Anton your save file and version.");470	pLeague->DoVoteRepeal(iResolutionID, eVoter, iNumVotes, iChoice);471}

Calls