Bazaar developer reference

CvPreGame::setSlotClaim(PlayerTypes, SlotClaim)

Defined in
CvPreGame.cpp, line 2943
Hook name
CivHooks::CvPreGame_setSlotClaim

Hooks

static bool BeforeCvPreGame_setSlotClaim(PlayerTypes p, SlotClaim s);static void AfterCvPreGame_setSlotClaim(PlayerTypes p, SlotClaim s);static void ReplaceCvPreGame_setSlotClaim(void (*original)(PlayerTypes, SlotClaim), PlayerTypes p, SlotClaim s);CivRegisterBefore<CivHooks::CvPreGame_setSlotClaim>(host, &BeforeCvPreGame_setSlotClaim);CivRegisterAfter<CivHooks::CvPreGame_setSlotClaim>(host, &AfterCvPreGame_setSlotClaim);CivRegisterReplace<CivHooks::CvPreGame_setSlotClaim>(host, &ReplaceCvPreGame_setSlotClaim);

Code

2943void setSlotClaim(PlayerTypes p, SlotClaim s)2944{2945	if(p >= 0 && p < MAX_PLAYERS)2946		s_slotClaims.setAt(p, s);2947}

Calls

Called by