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