Beispiel #1
0
 public QueueStatus GetQueueStatus()
 {
     // connected_peers + handling_peers + queueing_peers
     if (peerGroup.GetPeerList().Count + peerGroup.GetJoinHandlingCount() + peerGroup.GetJoinQueueingCount() >= MaxPlayerCount)
     {
         return(QueueStatus.Crowded);
     }
     else if (peerGroup.GetPeerList().Count >= MaxPlayerCount)
     {
         return(QueueStatus.Full);
     }
     else
     {
         return(QueueStatus.Smooth);
     }
 }