Exemplo n.º 1
0
        private void HandleUserOffline(GSPacketIn pkg)
        {
            List <int> list = new List <int>();
            int        num  = pkg.ReadInt();

            for (int index = 0; index < num; ++index)
            {
                int id = pkg.ReadInt();
                pkg.ReadInt();
                LoginMgr.PlayerLoginOut(id, this);
            }
            this._svr.SendToALL(pkg);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 处理用户下线
        /// </summary>
        /// <param name="pkg"></param>
        private void HandleUserOffline(GSPacketIn pkg)
        {
            List <int> users = new List <int>();
            int        count = pkg.ReadInt();

            for (int i = 0; i < count; i++)
            {
                int playerid    = pkg.ReadInt();
                int consortiaid = pkg.ReadInt();
                //判断用户是否在此服务器上,是则成功删除,否则忽略
                LoginMgr.PlayerLoginOut(playerid, this);
            }
            _svr.SendToALL(pkg);
        }
Exemplo n.º 3
0
        private void HandleUserOffline(GSPacketIn pkg)
        {
            List <int> users = new List <int>();
            int        count = pkg.ReadInt();

            for (int i = 0; i < count; i++)
            {
                int playerid    = pkg.ReadInt();
                int consortiaid = pkg.ReadInt();
                LoginMgr.PlayerLoginOut(playerid, this);
                this.Info.Online--;
            }
            this._svr.SendToALL(pkg);
        }