Major redesign: Using game ids and player ids in gui (associated with tree view items).
Player list of all network games is now dynamically updated in lobby (no polling, server sends events).
This commit is contained in:
+8
-2
@@ -276,9 +276,15 @@ bool Session::isNetworkServerRunning() const
|
||||
return myNetServer != NULL;
|
||||
}
|
||||
|
||||
GameInfo Session::getClientGameInfo(const string &game)
|
||||
GameInfo Session::getClientGameInfo(unsigned playerId)
|
||||
{
|
||||
assert(myNetClient);
|
||||
return myNetClient->GetGameInfo(game);
|
||||
return myNetClient->GetGameInfo(playerId);
|
||||
}
|
||||
|
||||
PlayerInfo Session::getClientPlayerInfo(unsigned playerId)
|
||||
{
|
||||
assert(myNetClient);
|
||||
return myNetClient->GetPlayerInfo(playerId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user