Bazaar developer reference

CvReplayInfo::getPlayerCivDescription(int) const

Defined in
CvReplayInfo.cpp, line 309
Class
CvReplayInfo
Hook name
CivHooks::CvReplayInfo_getPlayerCivDescription

Hooks

static bool BeforeCvReplayInfo_getPlayerCivDescription(const CvReplayInfo* self, int iPlayer, const char*& result);static void AfterCvReplayInfo_getPlayerCivDescription(const CvReplayInfo* self, int iPlayer, const char*& result);static const char* ReplaceCvReplayInfo_getPlayerCivDescription(const char* (*original)(const CvReplayInfo*, int), const CvReplayInfo* self, int iPlayer);CivRegisterBefore<CivHooks::CvReplayInfo_getPlayerCivDescription>(host, &BeforeCvReplayInfo_getPlayerCivDescription);CivRegisterAfter<CivHooks::CvReplayInfo_getPlayerCivDescription>(host, &AfterCvReplayInfo_getPlayerCivDescription);CivRegisterReplace<CivHooks::CvReplayInfo_getPlayerCivDescription>(host, &ReplaceCvReplayInfo_getPlayerCivDescription);

Code

309const char* CvReplayInfo::getPlayerCivDescription(int iPlayer) const310{311	if(iPlayer >= 0 && iPlayer < (int)m_listPlayerInfo.size())312	{313		return m_listPlayerInfo[iPlayer].m_strCustomCivilizationName;314	}315316	return NULL;317}

Calls

Called by