コード例 #1
0
 private static List <PlayerDataHolder> MatchQueue = new List <PlayerDataHolder>(); //This list stores the PlayerDataHolder's of Clients looking for match
 //public List<Maps> availableMaps = new List<Maps>();
 public static void AddToQueue(PlayerDataHolder playerDataHolder)
 {
     ServerConsoleWriter.WriteLine($"{playerDataHolder.Username} has joined the match Queue");
     if (playerDataHolder.GetMatchId() != 0)
     {
         //This user was on a match so he should rejoin it :)
     }
     else
     {
         MatchQueue.Add(playerDataHolder);
     }
 }