CvPreGame::getActiveSlotCount()
- Defined in
- CvPreGame.cpp, line 3299
- Hook name
CivHooks::CvPreGame_getActiveSlotCount
Hooks
static bool BeforeCvPreGame_getActiveSlotCount(int& result);static void AfterCvPreGame_getActiveSlotCount(int& result);static int ReplaceCvPreGame_getActiveSlotCount(int (*original)());CivRegisterBefore<CivHooks::CvPreGame_getActiveSlotCount>(host, &BeforeCvPreGame_getActiveSlotCount);CivRegisterAfter<CivHooks::CvPreGame_getActiveSlotCount>(host, &AfterCvPreGame_getActiveSlotCount);CivRegisterReplace<CivHooks::CvPreGame_getActiveSlotCount>(host, &ReplaceCvPreGame_getActiveSlotCount);
Code
3298// Get the number of slots that have been taken by humans and AIs3299int getActiveSlotCount()3300{3301 return calcActiveSlotCount(s_slotStatus, s_slotClaims);3302}
Calls
- CvPreGame::calcActiveSlotCount(const std::vector<SlotStatus> &, const std::vector<SlotClaim> &)
FAutoVariable::operator const std::vector<SlotClaim> &FAutoVariable::operator const std::vector<SlotStatus> &