BF2Statistics.Gamespy.GpcmServer.IsConnected C# (CSharp) Метод

IsConnected() публичный Метод

Returns whether the specified player is currently connected
public IsConnected ( int Pid ) : bool
Pid int The players ID
Результат bool
        public bool IsConnected(int Pid) => Clients.ContainsKey(Pid);

Usage Example

 /// <summary>
 /// Returns whether the specified player is currently connected
 /// </summary>
 public static bool IsPlayerConnected(int Pid)
 {
     return((IsRunning) ? ClientManager.IsConnected(Pid) : false);
 }