Example #1
0
 /// <summary>
 ///     Get the Player object by username. Warning, expensive call!!!
 /// </summary>
 public Player GetPlayerByUsername(string username)
 {
     if (username == HostPlayer.Username)
     {
         return(HostPlayer);
     }
     else
     {
         return(ConnectedPlayers.Single(z => z.Value.Username == username).Value);
     }
 }