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

Method setState

cpp/cppsdk/gsdk.cpp:288–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 }
287
288 void GSDKInternal::setState(GameState state)
289 {
290 std::lock_guard<std::mutex> lock(m_stateMutex);
291
292 if (m_heartbeatRequest.m_currentGameState != state)
293 {
294 m_heartbeatRequest.m_currentGameState = state;
295 m_signalHeartbeatEvent.Signal();
296 }
297 }
298
299 void GSDKInternal::setConnectedPlayers(const std::vector<ConnectedPlayer>& currentConnectedPlayers)
300 {

Callers 2

readyForPlayersMethod · 0.45
TEST_METHODFunction · 0.45

Calls 1

SignalMethod · 0.80

Tested by 1

TEST_METHODFunction · 0.36