Bazaar developer reference

CvGameLeagues::LogLeagueMessage(CvString &)

Defined in
CvVotingClasses.cpp, line 7362
Class
CvGameLeagues
Hook name
CivHooks::CvGameLeagues_LogLeagueMessage

Hooks

static bool BeforeCvGameLeagues_LogLeagueMessage(CvGameLeagues* self, CvString& kMessage);static void AfterCvGameLeagues_LogLeagueMessage(CvGameLeagues* self, CvString& kMessage);static void ReplaceCvGameLeagues_LogLeagueMessage(void (*original)(CvGameLeagues*, CvString&), CvGameLeagues* self, CvString& kMessage);CivRegisterBefore<CivHooks::CvGameLeagues_LogLeagueMessage>(host, &BeforeCvGameLeagues_LogLeagueMessage);CivRegisterAfter<CivHooks::CvGameLeagues_LogLeagueMessage>(host, &AfterCvGameLeagues_LogLeagueMessage);CivRegisterReplace<CivHooks::CvGameLeagues_LogLeagueMessage>(host, &ReplaceCvGameLeagues_LogLeagueMessage);

Code

7362void CvGameLeagues::LogLeagueMessage(CvString& kMessage)7363{7364	if(GC.getLogging())7365	{7366		CvString strOutBuf;7367		CvString strBaseString;7368		FILogFile* pLog;73697370		pLog = LOGFILEMGR.GetLog(GetLogFileName(), FILogFile::kDontTimeStamp);73717372		// Get the leading info for this line7373		strBaseString.Format("%03d, %d", GC.getGame().getElapsedGameTurns(), GC.getGame().getGameTurnYear());7374		strOutBuf = strBaseString + kMessage;7375		pLog->Msg(strOutBuf);7376	}7377}

Calls

Called by