Adding function to find out in which game a user is playing.

This commit is contained in:
lotodore
2010-07-15 10:34:24 +00:00
parent a7f4d033e2
commit c0947c9d54
4 changed files with 39 additions and 0 deletions
+8
View File
@@ -495,6 +495,14 @@ PlayerInfo Session::getClientPlayerInfo(unsigned playerId) const
return info;
}
unsigned Session::getGameIdOfPlayer(unsigned playerId) const
{
unsigned gameId = 0;
if (myNetClient)
gameId = myNetClient->GetGameIdOfPlayer(playerId);
return gameId;
}
ServerStats Session::getClientStats() const
{
ServerStats stats;