Bazaar developer reference

CvReplayInfo::getPlayerLeaderName(int) const

Defined in
CvReplayInfo.cpp, line 299
Class
CvReplayInfo
Hook name
CivHooks::CvReplayInfo_getPlayerLeaderName

Hooks

static bool BeforeCvReplayInfo_getPlayerLeaderName(const CvReplayInfo* self, int iPlayer, const char*& result);static void AfterCvReplayInfo_getPlayerLeaderName(const CvReplayInfo* self, int iPlayer, const char*& result);static const char* ReplaceCvReplayInfo_getPlayerLeaderName(const char* (*original)(const CvReplayInfo*, int), const CvReplayInfo* self, int iPlayer);CivRegisterBefore<CivHooks::CvReplayInfo_getPlayerLeaderName>(host, &BeforeCvReplayInfo_getPlayerLeaderName);CivRegisterAfter<CivHooks::CvReplayInfo_getPlayerLeaderName>(host, &AfterCvReplayInfo_getPlayerLeaderName);CivRegisterReplace<CivHooks::CvReplayInfo_getPlayerLeaderName>(host, &ReplaceCvReplayInfo_getPlayerLeaderName);

Code

299const char* CvReplayInfo::getPlayerLeaderName(int iPlayer) const300{301	if(iPlayer >= 0 && iPlayer < (int)m_listPlayerInfo.size())302	{303		return m_listPlayerInfo[iPlayer].m_strCustomLeaderName;304	}305306	return NULL;307}

Calls

Called by