Bazaar developer reference

CvPreGame::slotStatus(PlayerTypes)

Defined in
CvPreGame.cpp, line 3121
Hook name
CivHooks::CvPreGame_slotStatus

Hooks

static bool BeforeCvPreGame_slotStatus(PlayerTypes p, SlotStatus& result);static void AfterCvPreGame_slotStatus(PlayerTypes p, SlotStatus& result);static SlotStatus ReplaceCvPreGame_slotStatus(SlotStatus (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_slotStatus>(host, &BeforeCvPreGame_slotStatus);CivRegisterAfter<CivHooks::CvPreGame_slotStatus>(host, &AfterCvPreGame_slotStatus);CivRegisterReplace<CivHooks::CvPreGame_slotStatus>(host, &ReplaceCvPreGame_slotStatus);

Code

3121SlotStatus slotStatus(PlayerTypes p)3122{3123	if(p >= 0 && p < MAX_PLAYERS)3124		return s_slotStatus[p];3125	return SS_CLOSED;3126}

Calls

Called by