Bazaar developer reference

CvPreGame::slotClaim(PlayerTypes)

Defined in
CvPreGame.cpp, line 3114
Hook name
CivHooks::CvPreGame_slotClaim

Hooks

static bool BeforeCvPreGame_slotClaim(PlayerTypes p, SlotClaim& result);static void AfterCvPreGame_slotClaim(PlayerTypes p, SlotClaim& result);static SlotClaim ReplaceCvPreGame_slotClaim(SlotClaim (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_slotClaim>(host, &BeforeCvPreGame_slotClaim);CivRegisterAfter<CivHooks::CvPreGame_slotClaim>(host, &AfterCvPreGame_slotClaim);CivRegisterReplace<CivHooks::CvPreGame_slotClaim>(host, &ReplaceCvPreGame_slotClaim);

Code

3114SlotClaim slotClaim(PlayerTypes p)3115{3116	if(p >= 0 && p < MAX_PLAYERS)3117		return s_slotClaims[p];3118	return SLOTCLAIM_UNASSIGNED;3119}

Calls

Called by