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
FAutoVariable::setAt
Called by
- CvDllPreGame::setSlotStatus(PlayerTypes, SlotStatus)
- CvGame::ActivateObserverSlot()
- CvGame::InitPlayers()
- CvGame::ReviveActivePlayer()
- CvGame::addPlayer(PlayerTypes, LeaderHeadTypes, CivilizationTypes)
- CvGame::setAIAutoPlay(int, PlayerTypes)
- CvPlayer::disconnected()
- CvPlayer::reconnected()
- CvPreGame::closeAllSlots()
- CvPreGame::closeInactiveSlots()
- CvPreGame::resetPlayer(PlayerTypes)
- CvPreGame::resetSlots()
- CvWorldBuilderMapLoader::SetupPlayers()