CvPreGame::closeAllSlots()
- Defined in
- CvPreGame.cpp, line 803
- Hook name
CivHooks::CvPreGame_closeAllSlots
Hooks
static bool BeforeCvPreGame_closeAllSlots();static void AfterCvPreGame_closeAllSlots();static void ReplaceCvPreGame_closeAllSlots(void (*original)());CivRegisterBefore<CivHooks::CvPreGame_closeAllSlots>(host, &BeforeCvPreGame_closeAllSlots);CivRegisterAfter<CivHooks::CvPreGame_closeAllSlots>(host, &AfterCvPreGame_closeAllSlots);CivRegisterReplace<CivHooks::CvPreGame_closeAllSlots>(host, &ReplaceCvPreGame_closeAllSlots);
Code
803void closeAllSlots()804{805 for(int i = 0; i < MAX_CIV_PLAYERS; i++)806 {807 PlayerTypes eID = (PlayerTypes)i;808 setSlotStatus(eID, SS_CLOSED);809 setSlotClaim(eID, SLOTCLAIM_UNASSIGNED);810 }811}