public void ChangRideGiftLvlS2cData(Variant s2cData)
        {
            uint type = s2cData.getValue("type")._uint;

            if (rideInfo.giftMapping.ContainsKey(type))
            {
                rideInfo.giftMapping[type].type = type;
                rideInfo.giftMapping[type].lvl  = s2cData.getValue("lvl")._uint;
            }
            else
            {
                RideGiftData vo = new  RideGiftData();
                vo.type = type;
                vo.lvl  = s2cData.getValue("lvl")._uint;
                rideInfo.giftMapping.Add(type, vo);
            }

            rideInfo.combpt = s2cData.getValue("combpt")._uint;
            //rideInfo.gift_point = s2cData.getValue( "gift_point" )._uint;
        }
        public void SetRideInfoS2cData(Variant s2cData)
        {
            if (rideInfo == null)
            {
                rideInfo                   = new RideInfoData();
                rideInfo.giftMapping       = new Dictionary <uint, RideGiftData>();
                rideInfo.ridedressMapiping = new Dictionary <uint, RideDressments>();
            }

            rideInfo.lvl   = s2cData.getValue("lvl")._uint;
            rideInfo.exp   = s2cData.getValue("exp")._uint;
            rideInfo.dress = s2cData.getValue("dress")._uint;
            rideInfo.mount = s2cData.getValue("mount")._uint;
            //rideInfo.gift_point = s2cData.getValue( "gift_point" )._uint;
            rideInfo.combpt = s2cData.getValue("combpt")._uint;

            rideInfo.configVo    = GetValueByType <RideConfigVo>((int)rideInfo.dress);
            rideInfo.lvlconfigVo = GetValueByType <LevelConfigVo>(( int )rideInfo.lvl);

            List <Variant> giftLst = s2cData.getValue("gift")._arr;

            for (int i = 0; i < giftLst.Count; i++)
            {
                RideGiftData gift = new RideGiftData();
                gift.type = giftLst[i].getValue("type")._uint;
                gift.lvl  = giftLst[i].getValue("lvl")._uint;

                if (rideInfo.giftMapping.ContainsKey(gift.type))
                {
                    rideInfo.giftMapping[gift.type] = gift;
                }
                else
                {
                    rideInfo.giftMapping.Add(gift.type, gift);
                }
            }  //灵力

            List <Variant> dressmentsLst = s2cData.getValue("dressments")._arr;

            for (int i = 0; i < dressmentsLst.Count; i++)
            {
                RideDressments dress = new RideDressments();

                dress.dress = dressmentsLst[i].getValue("dress")._uint;

                dress.limit = dressmentsLst[i].getValue("limit")._uint;

                dress.isforever = dressmentsLst[i].getValue("forever")._bool;

                if (rideInfo.ridedressMapiping.ContainsKey(dress.dress))
                {
                    rideInfo.ridedressMapiping[dress.dress] = dress;
                }
                else
                {
                    rideInfo.ridedressMapiping.Add(dress.dress, dress);
                }
            }   //外观

            if (GRMap.curSvrConf != null && GRMap.curSvrConf.ContainsKey("maptype") && GRMap.curSvrConf["maptype"]._int > 0)
            {
                //副本中不携带坐骑
            }
            else
            {
                if (SelfRole._inst != null && rideInfo.mount == ( uint )RIDESTATE.UP)
                {
                    SelfRole._inst.set_Ride(( int )A3_RideModel.getInstance().GetRideInfo().dress);
                }
            }
        }