/// <summary> /// 进入游戏 /// </summary> private void OnEnterGame(PacketBase packet) { ss2gs.EnterGame msg = packet as ss2gs.EnterGame; //确定session是否还存在 ClientSession session = ClientSessionManager.Instance.GetSession(msg.client_uid.conn_idx); if (session != null) { session.session_status = eSessionStatus.IN_GAMING; gs2c.EnterGame rep_msg = PacketPools.Get(gs2c.msg.ENTER_GAME) as gs2c.EnterGame; rep_msg.char_idx = msg.char_idx; session.Send(rep_msg); } }
/// <summary> /// 进入游戏 /// </summary> private void OnEnterGame(PacketBase packet) { gs2c.EnterGame msg = packet as gs2c.EnterGame; ServerMsgSend.SendEnterScene(m_conn_idx, 0); }