Bazaar developer reference

CvDllPreGame::setHandicap(PlayerTypes, HandicapTypes)

Defined in
CvDllPreGame.cpp, line 770
Class
CvDllPreGame
Hook name
CivHooks::CvDllPreGame_setHandicap

Hooks

static bool BeforeCvDllPreGame_setHandicap(CvDllPreGame* self, PlayerTypes p, HandicapTypes h);static void AfterCvDllPreGame_setHandicap(CvDllPreGame* self, PlayerTypes p, HandicapTypes h);static void ReplaceCvDllPreGame_setHandicap(void (*original)(CvDllPreGame*, PlayerTypes, HandicapTypes), CvDllPreGame* self, PlayerTypes p, HandicapTypes h);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setHandicap::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_setHandicap);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setHandicap::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_setHandicap);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_setHandicap::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_setHandicap);

Code

770void CvDllPreGame::setHandicap(PlayerTypes p, HandicapTypes h)771{772	CvPreGame::setHandicap(p, h);773}

Calls