Bazaar developer reference

CvPreGame::civilizationKey(PlayerTypes)

Defined in
CvPreGame.cpp, line 3395
Hook name
CivHooks::CvPreGame_civilizationKey

Hooks

static bool BeforeCvPreGame_civilizationKey(PlayerTypes p, const CvString*& result);static void AfterCvPreGame_civilizationKey(PlayerTypes p, const CvString*& result);static const CvString& ReplaceCvPreGame_civilizationKey(const CvString& (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_civilizationKey>(host, &BeforeCvPreGame_civilizationKey);CivRegisterAfter<CivHooks::CvPreGame_civilizationKey>(host, &AfterCvPreGame_civilizationKey);CivRegisterReplace<CivHooks::CvPreGame_civilizationKey>(host, &ReplaceCvPreGame_civilizationKey);

Code

3394// Get the unique key value for the civilization3395const CvString& civilizationKey(PlayerTypes p)3396{3397	if(p >= 0 && p < MAX_PLAYERS)3398		return s_civilizationKeys[p];3399	static const CvString empty = "";3400	return empty;3401}

Calls

Called by