Add more metrics
This commit is contained in:
@ -34,3 +34,14 @@ protocol ManageableTable {
|
||||
|
||||
func disconnectAllPlayers()
|
||||
}
|
||||
|
||||
extension ManageableTable {
|
||||
|
||||
var numberOfConnectedPlayers: Int {
|
||||
allPlayers.count { $0.isConnected }
|
||||
}
|
||||
|
||||
var playerCount: Int {
|
||||
allPlayers.count
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user