MCPcopy Create free account
hub / github.com/PlayFab/gsdk / readyForPlayers

Method readyForPlayers

cpp/cppsdk/gsdk.cpp:513–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511 }
512
513 bool GSDK::readyForPlayers()
514 {
515 if (GSDKInternal::get().m_heartbeatRequest.m_currentGameState != GameState::Active)
516 {
517 GSDKInternal::get().setState(GameState::StandingBy);
518 GSDKInternal::get().m_transitionToActiveEvent.Wait();
519 }
520
521 return GSDKInternal::get().m_heartbeatRequest.m_currentGameState == GameState::Active;
522 }
523
524 const Microsoft::Azure::Gaming::GameServerConnectionInfo &GSDK::getGameServerConnectionInfo()
525 {

Callers

nothing calls this directly

Calls 2

WaitMethod · 0.80
setStateMethod · 0.45

Tested by

no test coverage detected