예제 #1
0
        private void HandleUserLogin(GSPacketIn pkg)
        {
            int num = pkg.ReadInt();

            if (LoginMgr.TryLoginPlayer(num, this))
            {
                this.SendAllowUserLogin(num, true);
            }
            else
            {
                this.SendAllowUserLogin(num, false);
            }
        }
예제 #2
0
        /// <summary>
        /// 用户准备登陆
        /// </summary>
        /// <param name="pkg"></param>
        private void HandleUserLogin(GSPacketIn pkg)
        {
            int playerid = pkg.ReadInt();

            if (LoginMgr.TryLoginPlayer(playerid, this))
            {
                SendAllowUserLogin(playerid, true);
            }
            else
            {
                SendAllowUserLogin(playerid, false);
            }
        }