Bazaar developer reference

CvPreGame::setSlotStatus(PlayerTypes, SlotStatus)

Defined in
CvPreGame.cpp, line 2949
Hook name
CivHooks::CvPreGame_setSlotStatus

Hooks

static bool BeforeCvPreGame_setSlotStatus(PlayerTypes p, SlotStatus eSlotStatus);static void AfterCvPreGame_setSlotStatus(PlayerTypes p, SlotStatus eSlotStatus);static void ReplaceCvPreGame_setSlotStatus(void (*original)(PlayerTypes, SlotStatus), PlayerTypes p, SlotStatus eSlotStatus);CivRegisterBefore<CivHooks::CvPreGame_setSlotStatus>(host, &BeforeCvPreGame_setSlotStatus);CivRegisterAfter<CivHooks::CvPreGame_setSlotStatus>(host, &AfterCvPreGame_setSlotStatus);CivRegisterReplace<CivHooks::CvPreGame_setSlotStatus>(host, &ReplaceCvPreGame_setSlotStatus);

Code

2949void setSlotStatus(PlayerTypes p, SlotStatus eSlotStatus)2950{2951	if(p >= 0 && p < MAX_PLAYERS)2952		s_slotStatus.setAt(p, eSlotStatus);2953}

Calls

Called by