Bazaar developer reference

CvPreGame::civilizationDescriptionKey(PlayerTypes)

Defined in
CvPreGame.cpp, line 750
Hook name
CivHooks::CvPreGame_civilizationDescriptionKey

Hooks

static bool BeforeCvPreGame_civilizationDescriptionKey(PlayerTypes p, const CvString*& result);static void AfterCvPreGame_civilizationDescriptionKey(PlayerTypes p, const CvString*& result);static const CvString& ReplaceCvPreGame_civilizationDescriptionKey(const CvString& (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_civilizationDescriptionKey>(host, &BeforeCvPreGame_civilizationDescriptionKey);CivRegisterAfter<CivHooks::CvPreGame_civilizationDescriptionKey>(host, &AfterCvPreGame_civilizationDescriptionKey);CivRegisterReplace<CivHooks::CvPreGame_civilizationDescriptionKey>(host, &ReplaceCvPreGame_civilizationDescriptionKey);

Code

750const CvString& civilizationDescriptionKey(PlayerTypes p)751{752	if(p >= 0 && p < MAX_PLAYERS)753		return s_civDescriptions[p];754	static const CvString empty = "";755	return empty;756}

Calls

Called by