Esempio n. 1
0
        // Token: 0x06004B30 RID: 19248 RVA: 0x00175CF8 File Offset: 0x00173EF8
        public OrderReward FindOrderReward(string orderId)
        {
            OrderReward result = null;

            this.m_orderRerads.TryGetValue(orderId, out result);
            return(result);
        }
Esempio n. 2
0
        // Token: 0x06004F98 RID: 20376 RVA: 0x0017F348 File Offset: 0x0017D548
        public static OrderReward FromPB(ProOrderReward pbOrderReward)
        {
            OrderReward orderReward = new OrderReward();

            orderReward.OrderId = pbOrderReward.OrderId;
            orderReward.Rewards.AddRange(BagItemBase.PBGoodsListToGoodsList(pbOrderReward.Rewards));
            return(orderReward);
        }
Esempio n. 3
0
        // Token: 0x06004F97 RID: 20375 RVA: 0x0017F310 File Offset: 0x0017D510
        public static ProOrderReward ToPB(OrderReward orderReward)
        {
            ProOrderReward proOrderReward = new ProOrderReward();

            proOrderReward.OrderId = orderReward.OrderId;
            proOrderReward.Rewards.AddRange(BagItemBase.GoodsListToPBGoodsList(orderReward.Rewards));
            return(proOrderReward);
        }
 // Token: 0x060040D4 RID: 16596 RVA: 0x0012F89C File Offset: 0x0012DA9C
 public void AddOrderReward(string orderId, OrderReward reward)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_AddOrderRewardStringOrderReward_hotfix != null)
     {
         this.m_AddOrderRewardStringOrderReward_hotfix.call(new object[]
         {
             this,
             orderId,
             reward
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_giftStoreDS.AddOrderReward(orderId, reward);
 }
Esempio n. 5
0
        // Token: 0x06004B1A RID: 19226 RVA: 0x0017596C File Offset: 0x00173B6C
        public override object SerializeToClient()
        {
            DSGiftStoreNtf dsgiftStoreNtf = new DSGiftStoreNtf();

            dsgiftStoreNtf.Version = (uint)base.Version;
            foreach (KeyValuePair <int, string> keyValuePair in this.m_firstboughtItemsRecords)
            {
                ProGiftStoreFirstBoughtRecord proGiftStoreFirstBoughtRecord = new ProGiftStoreFirstBoughtRecord();
                proGiftStoreFirstBoughtRecord.GoodsId         = keyValuePair.Key;
                proGiftStoreFirstBoughtRecord.GoodsRegisterId = keyValuePair.Value;
                dsgiftStoreNtf.Records.Add(proGiftStoreFirstBoughtRecord);
            }
            foreach (GiftStoreItem item in this.m_localBoughtItems)
            {
                dsgiftStoreNtf.BoughtItems.Add(GiftStoreItem.ToPB(item));
            }
            foreach (KeyValuePair <string, OrderReward> keyValuePair2 in this.m_orderRerads)
            {
                dsgiftStoreNtf.OrderRewards.Add(OrderReward.ToPB(keyValuePair2.Value));
            }
            return(dsgiftStoreNtf);
        }
Esempio n. 6
0
 // Token: 0x06004B2F RID: 19247 RVA: 0x00175CE0 File Offset: 0x00173EE0
 public void AddOrderReward(string orderId, OrderReward reward)
 {
     this.m_orderRerads[orderId] = reward;
     base.SetDirty(true);
 }
Esempio n. 7
0
 // Token: 0x06004B2D RID: 19245 RVA: 0x00175CA4 File Offset: 0x00173EA4
 public void InitOrderReward(OrderReward orderReward)
 {
     this.m_orderRerads.Add(orderReward.OrderId, orderReward);
 }