コード例 #1
0
 /// <summary>
 /// 626 更新玩家次数信息
 /// </summary>
 public static bool Recv_UserTimes_RESP(object Info)
 {
     if (Info == null)
     {
         return(false);
     }
     user.UserTimesResponse times_info = Info as user.UserTimesResponse;
     if (m_UserInfo == null)
     {
         m_UserInfo = new UserInfo();
     }
     m_UserInfo.SetUserTimesInfo(times_info);
     return(true);
 }
コード例 #2
0
    /// <summary>
    /// 设置玩家次数
    /// </summary>
    public void SetUserTimesInfo(user.UserTimesResponse Info)
    {
        if (Info == null)
        {
            return;
        }
        this.Skilltimes    = Info.skilltimes;
        this.Treasuretimes = Info.treasuretimes;

        this.Shop_Normal_times    = Info.shop_normal_times;
        this.Shop_Athletics_times = Info.shop_athletics_times;
        this.Shop_Black_times     = Info.shop_black_times;
        this.m_shop_Gnome_times   = Info.shop_gnome_times;

        this.Athletics_times     = Info.athletics_times;
        this.Athletics_buy_times = Info.athletics_buy_times;
        this.Ernie_coin_times    = Info.ernie_coin_times;
        this.Ernie_diamond_times = Info.ernie_diamond_times;
        this.EBuyCoin_times      = Info.buy_coin_times;
        this.EBuyCryStal_times   = Info.buy_crystal_times;
        this.EBuyWood_times      = Info.buy_wood_times;
    }