mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-22 07:10:25 -08:00
client/server version bump; eventConnectionStateChanged
This commit is contained in:
@@ -341,6 +341,13 @@ void Server_Game::nextTurn()
|
||||
setActivePlayer(keys[listPos]);
|
||||
}
|
||||
|
||||
void Server_Game::postConnectionStatusUpdate(Server_Player *player, bool connectionStatus)
|
||||
{
|
||||
QMutexLocker locker(&gameMutex);
|
||||
|
||||
sendGameEvent(new Event_ConnectionStateChanged(player->getPlayerId(), connectionStatus));
|
||||
}
|
||||
|
||||
QList<ServerInfo_Player *> Server_Game::getGameState(Server_Player *playerWhosAsking) const
|
||||
{
|
||||
QMutexLocker locker(&gameMutex);
|
||||
|
||||
Reference in New Issue
Block a user