/// <summary>
        /// 创建角色
        /// </summary>
        private void OnCreateCharacter(PacketBase packet)
        {
            ss2gs.CreateCharacter msg = packet as ss2gs.CreateCharacter;

            gs2c.CreateCharacter rep_msg = PacketPools.Get(gs2c.msg.CREATE_CHARACTER) as gs2c.CreateCharacter;
            rep_msg.result   = msg.result;
            rep_msg.char_idx = msg.char_idx;
            ForClientNetManager.Instance.Send(msg.client_uid.conn_idx, rep_msg);
        }
 /// <summary>
 /// 创建角色
 /// </summary>
 private void OnCreateCharacter(PacketBase packet)
 {
     gs2c.CreateCharacter msg = packet as gs2c.CreateCharacter;
     if (msg.result != eCreateCharResult.E_SUCCESS)
     {
         Log.Error("创建角色错误:" + msg.result);
     }
     else
     {
         Log.Debug("角色创建成功:" + msg.char_idx);
         ServerMsgSend.SendCharacterList(m_conn_idx);
     }
 }
 /// <summary>
 /// 创建角色
 /// </summary>
 private void OnCreateCharacter(PacketBase packet)
 {
     gs2c.CreateCharacter msg = packet as gs2c.CreateCharacter;
     if (msg.result != eCreateCharResult.E_SUCCESS)
     {
         EventController.TriggerEvent(ClientEventID.SHOW_MESSAGE, "创建角色错误:" + msg.result, "错误");
     }
     else
     {
         EventController.TriggerEvent(ClientEventID.SHOW_MESSAGE, "创建成功:" + msg.char_idx, "信息");
         ServerMsgSend.SendCharacterList();
     }
 }
        /// <summary>
        /// 创建角色
        /// </summary>
        private void OnCreateCharacter(PacketBase packet)
        {
            ss2gs.CreateCharacter msg = packet as ss2gs.CreateCharacter;

            ClientSession session = ClientSessionManager.Instance.GetSessionByAccount(msg.account_idx);

            if (session == null)
            {
                return;
            }

            gs2c.CreateCharacter rep_msg = PacketPools.Get(gs2c.msg.CREATE_CHARACTER) as gs2c.CreateCharacter;
            rep_msg.result   = msg.result;
            rep_msg.char_idx = msg.char_idx;
            session.Send(rep_msg);
        }