CvPreGame::isReady(PlayerTypes)
- Defined in
- CvPreGame.cpp, line 1227
- Hook name
CivHooks::CvPreGame_isReady
Hooks
static bool BeforeCvPreGame_isReady(PlayerTypes p, bool& result);static void AfterCvPreGame_isReady(PlayerTypes p, bool& result);static bool ReplaceCvPreGame_isReady(bool (*original)(PlayerTypes), PlayerTypes p);CivRegisterBefore<CivHooks::CvPreGame_isReady>(host, &BeforeCvPreGame_isReady);CivRegisterAfter<CivHooks::CvPreGame_isReady>(host, &AfterCvPreGame_isReady);CivRegisterReplace<CivHooks::CvPreGame_isReady>(host, &ReplaceCvPreGame_isReady);
Code
1227bool isReady(PlayerTypes p)1228{1229 if(p >= 0 && p < MAX_PLAYERS)1230 return s_readyPlayers[p];1231 return false;1232}
Calls
FAutoVariable::operator[]