/// <summary>
        /// 进入游戏
        /// </summary>
        public static void SendEnterGame(long char_idx)
        {
            if (!CheckLogin())
            {
                return;
            }

            c2gs.EnterGame msg = PacketPools.Get(c2gs.msg.ENTER_GAME) as c2gs.EnterGame;
            msg.char_idx = char_idx;
            ClientNetManager.Instance.Send(msg);
        }
        /// <summary>
        /// 进入游戏
        /// </summary>
        private void OnEnterGame(ClientSession session, PacketBase packet)
        {
            c2gs.EnterGame msg = packet as c2gs.EnterGame;

            if (session.session_status != eSessionStatus.ALREADY_LOGIN)
            {
                Log.Debug("OnEnterGame::错误的seesion状态:" + session.session_status);
                return;
            }
            //请求进入游戏
            session.session_status = eSessionStatus.ENTER_GAMING;

            gs2ss.EnterGame rep_msg = PacketPools.Get(gs2ss.msg.ENTER_GAME) as gs2ss.EnterGame;
            rep_msg.client_uid  = session.client_uid;
            rep_msg.account_idx = session.account_idx;
            rep_msg.char_idx    = msg.char_idx;
            session.Send2SS(rep_msg);
        }