/// <summary>
 /// 登陆
 /// </summary>
 private void OnClientLogin(PacketBase packet)
 {
     gs2c.ClientLogin msg = packet as gs2c.ClientLogin;
     if (msg.login_result == eLoginResult.E_SUCCESS)
     {
         ServerMsgSend.SendCharacterList(m_conn_idx);
     }
     else
     {
         Log.Error("登录错误:" + m_conn_idx);
     }
 }
 /// <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 OnClientLogin(PacketBase packet)
        {
            gs2c.ClientLogin msg = packet as gs2c.ClientLogin;
            if (msg.login_result == eLoginResult.E_SUCCESS)
            {
                EventController.TriggerEvent(ClientEventID.SHOW_STATUS, eFormStatusType.Account, "登录账号:" + ServerConfig.net_info.user_name);
                EventController.TriggerEvent(ClientEventID.SHOW_STATUS, eFormStatusType.Log, "登录成功");

                ServerMsgSend.SendCharacterList();
            }
            else
            {
                EventController.TriggerEvent(ClientEventID.SHOW_MESSAGE, "登录错误:" + msg.login_result, "错误");
                EventController.TriggerEvent(ClientEventID.SHOW_STATUS, eFormStatusType.Log, "登录失败");
            }
        }