Ejemplo n.º 1
0
        public static void smethod_6(string ServerID)
        {
            Dictionary <string, playerS> dictionary;
            ArrayList list = new ArrayList();

            lock ((dictionary = Players))
            {
                foreach (playerS rs in Players.Values)
                {
                    if (rs.ServerID == ServerID)
                    {
                        list.Add(rs);
                    }
                }
            }
            foreach (playerS rs2 in list)
            {
                RxjhClass.SetUserIdONLINE(rs2.UserId);
                rs2.npcyd.Dispose();
                lock ((dictionary = Players))
                {
                    Players.Remove(rs2.UserId);
                }
            }
        }
Ejemplo n.º 2
0
        public static void smethod_2(string Userid)
        {
            playerS rs = smethod_3(Userid);

            if (rs != null)
            {
                RxjhClass.SetUserIdONLINE(rs.UserId);
                lock (Players)
                {
                    Players.Remove(rs.UserId);
                }
            }
        }
Ejemplo n.º 3
0
 public void npcyd_Elapsed(object sender, ElapsedEventArgs e)
 {
     if (this.conn == 1)
     {
         RxjhClass.SetUserIdONLINE(this.UserId);
         lock (World.Players)
         {
             World.Players.Remove(this.UserId);
         }
     }
     this.npcyd.Close();
     this.npcyd.Dispose();
 }