Bazaar developer reference

CvDllPlayer::GetPlayerColor() const

Defined in
CvDllPlayer.cpp, line 248
Class
CvDllPlayer
Hook name
CivHooks::CvDllPlayer_GetPlayerColor

Hooks

static bool BeforeCvDllPlayer_GetPlayerColor(const CvDllPlayer* self, PlayerColorTypes& result);static void AfterCvDllPlayer_GetPlayerColor(const CvDllPlayer* self, PlayerColorTypes& result);static PlayerColorTypes ReplaceCvDllPlayer_GetPlayerColor(PlayerColorTypes (*original)(const CvDllPlayer*), const CvDllPlayer* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetPlayerColor::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPlayer_GetPlayerColor);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetPlayerColor::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPlayer_GetPlayerColor);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPlayer_GetPlayerColor::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPlayer_GetPlayerColor);

Code

248PlayerColorTypes CvDllPlayer::GetPlayerColor() const249{250	return m_pPlayer->getPlayerColor();251}

Calls