Bazaar developer reference

CvDllPreGame::setActivePlayer(PlayerTypes)

Defined in
CvDllPreGame.cpp, line 565
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_setActivePlayer

Hooks

static bool BeforeCvDllPreGame_setActivePlayer(CvDllPreGame* self, PlayerTypes p);static void AfterCvDllPreGame_setActivePlayer(CvDllPreGame* self, PlayerTypes p);static void ReplaceCvDllPreGame_setActivePlayer(void (*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_setActivePlayer::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_setActivePlayer);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setActivePlayer::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_setActivePlayer);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setActivePlayer::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_setActivePlayer);

Code

565void CvDllPreGame::setActivePlayer(PlayerTypes p)566{567	CvPreGame::setActivePlayer(p);568}

Calls