Ejemplo n.º 1
0
 public static void RemoveServer(BattleServer server)
 {
     if (server != null)
     {
         BattleMgr.m_list.Remove(server);
         server.Disconnected -= new EventHandler(BattleMgr.battle_Disconnected);
         server.Stop();
     }
 }
Ejemplo n.º 2
0
        public static void Disconnet(int id)
        {
            BattleServer server = BattleMgr.GetServer(id);

            if (server != null && server.IsActive)
            {
                server.LastRetryTime = DateTime.Now;
                server.RetryCount    = BattleMgr.MAX_RECONNECT_TIME;
                server.Stop();
            }
        }