Bazaar developer reference

CvDllPreGame::playerColor(PlayerTypes)

Defined in
CvDllPreGame.cpp, line 475
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_playerColor

Hooks

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

Code

475PlayerColorTypes CvDllPreGame::playerColor(PlayerTypes p)476{477	return CvPreGame::playerColor(p);478}

Calls