Bazaar developer reference

CvPreGame::civilizationAdjective(PlayerTypes)

Defined in
CvPreGame.cpp, line 718
Hook name
CivHooks::CvPreGame_civilizationAdjective

Hooks

static bool BeforeCvPreGame_civilizationAdjective(PlayerTypes p, const CvString*& result);static void AfterCvPreGame_civilizationAdjective(PlayerTypes p, const CvString*& result);static const CvString& ReplaceCvPreGame_civilizationAdjective(const CvString& (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_civilizationAdjective>(host, &BeforeCvPreGame_civilizationAdjective);CivRegisterAfter<CivHooks::CvPreGame_civilizationAdjective>(host, &AfterCvPreGame_civilizationAdjective);CivRegisterReplace<CivHooks::CvPreGame_civilizationAdjective>(host, &ReplaceCvPreGame_civilizationAdjective);

Code

718const CvString& civilizationAdjective(PlayerTypes p)719{720	if(p >= 0 && p < MAX_PLAYERS)721	{722		s_civAdjectivesLocalized[p] = GetLocalizedText(s_civAdjectives[p]);723		return s_civAdjectivesLocalized[p];724	}725726	static const CvString empty = "";727	return empty;728}

Calls

Called by