Bazaar developer reference

CvDllPreGame::setPlayerColor(PlayerTypes, PlayerColorTypes)

Defined in
CvDllPreGame.cpp, line 890
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_setPlayerColor

Hooks

static bool BeforeCvDllPreGame_setPlayerColor(CvDllPreGame* self, PlayerTypes p, PlayerColorTypes c);static void AfterCvDllPreGame_setPlayerColor(CvDllPreGame* self, PlayerTypes p, PlayerColorTypes c);static void ReplaceCvDllPreGame_setPlayerColor(void (*original)(CvDllPreGame*, PlayerTypes, PlayerColorTypes), CvDllPreGame* self, PlayerTypes p, PlayerColorTypes c);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setPlayerColor::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_setPlayerColor);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setPlayerColor::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_setPlayerColor);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setPlayerColor::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_setPlayerColor);

Code

890void CvDllPreGame::setPlayerColor(PlayerTypes p, PlayerColorTypes c)891{892	CvPreGame::setPlayerColor(p, c);893}

Calls