Add server statistics which are sent by the server to every client each time they change.

This commit is contained in:
lotodore
2007-10-20 22:22:11 +00:00
parent c5246aaef3
commit 4bc57f07d0
21 changed files with 302 additions and 3 deletions
+8
View File
@@ -363,3 +363,11 @@ PlayerInfo Session::getClientPlayerInfo(unsigned playerId)
return info;
}
ServerStats Session::getClientStats()
{
ServerStats stats;
if (myNetClient)
stats = myNetClient->GetStatData();
return stats;
}