コード例 #1
0
ファイル: Server.cs プロジェクト: Robin--/Cubeland.Telnet
 public void RemoveClient(NetConnection nc) {
     try {
         Conns.Remove(nc.GetID());
         Logger.Log("SrvMgr: Removed " + nc.GetID());
     } catch (Exception e) {
         Logger.Log("SrvMgr: Failed to remove " + nc.GetID() + " (Already removed from collection?)");
     }
 }
コード例 #2
0
ファイル: Server.cs プロジェクト: Robin--/Cubeland.Telnet
 public void AddClient(NetConnection nc) {
     Conns.Add(nc.GetID(), nc);
 }