| 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 | { |