Add server statistics which are sent by the server to every client each time they change.
This commit is contained in:
@@ -363,3 +363,11 @@ PlayerInfo Session::getClientPlayerInfo(unsigned playerId)
|
||||
return info;
|
||||
}
|
||||
|
||||
ServerStats Session::getClientStats()
|
||||
{
|
||||
ServerStats stats;
|
||||
if (myNetClient)
|
||||
stats = myNetClient->GetStatData();
|
||||
return stats;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user