Bazaar developer reference

CvGameLeagues::LogLeagueFounded(PlayerTypes)

Defined in
CvVotingClasses.cpp, line 7379
Class
CvGameLeagues
Hook name
CivHooks::CvGameLeagues_LogLeagueFounded

Hooks

static bool BeforeCvGameLeagues_LogLeagueFounded(CvGameLeagues* self, PlayerTypes eFounder);static void AfterCvGameLeagues_LogLeagueFounded(CvGameLeagues* self, PlayerTypes eFounder);static void ReplaceCvGameLeagues_LogLeagueFounded(void (*original)(CvGameLeagues*, PlayerTypes), CvGameLeagues* self, PlayerTypes eFounder);CivRegisterBefore<CivHooks::CvGameLeagues_LogLeagueFounded>(host, &BeforeCvGameLeagues_LogLeagueFounded);CivRegisterAfter<CivHooks::CvGameLeagues_LogLeagueFounded>(host, &AfterCvGameLeagues_LogLeagueFounded);CivRegisterReplace<CivHooks::CvGameLeagues_LogLeagueFounded>(host, &ReplaceCvGameLeagues_LogLeagueFounded);

Code

7379void CvGameLeagues::LogLeagueFounded(PlayerTypes eFounder)7380{7381	CvString sMessage = "";73827383	sMessage += ",Congress";7384	sMessage += ",- - -";7385	sMessage += ",Congress Founded";7386	if (eFounder != NO_PLAYER)7387	{7388		CvPlayer* pFounder = &GET_PLAYER(eFounder);7389		if (pFounder != NULL)7390		{7391			sMessage += ",";7392			sMessage += pFounder->getCivilizationShortDescription();7393		}7394	}73957396	LogLeagueMessage(sMessage);7397}

Calls

Called by