Beispiel #1
0
 public bool AddClient(NetHost.HostClient client)
 {
     if (!Pool.Contains(client))
     {
         Pool.Add(client);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 public bool RemoveClient(NetHost.HostClient client)
 {
     if (Pool.Contains(client))
     {
         Pool.Remove(client);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #3
0
 public ClientHandler(NetHost.HostClient hostClient)
 {
     HostClient = hostClient;
 }