Bazaar developer reference

CvPreGame::playerColor(PlayerTypes)

Defined in
CvPreGame.cpp, line 1675
Hook name
CivHooks::CvPreGame_playerColor

Hooks

static bool BeforeCvPreGame_playerColor(PlayerTypes p, PlayerColorTypes& result);static void AfterCvPreGame_playerColor(PlayerTypes p, PlayerColorTypes& result);static PlayerColorTypes ReplaceCvPreGame_playerColor(PlayerColorTypes (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_playerColor>(host, &BeforeCvPreGame_playerColor);CivRegisterAfter<CivHooks::CvPreGame_playerColor>(host, &AfterCvPreGame_playerColor);CivRegisterReplace<CivHooks::CvPreGame_playerColor>(host, &ReplaceCvPreGame_playerColor);

Code

1675PlayerColorTypes playerColor(PlayerTypes p)1676{1677	if(p >= 0 && p < MAX_PLAYERS)1678		return s_playerColors[p];1679	return NO_PLAYERCOLOR;1680}

Calls

Called by