Beispiel #1
0
 public void RefreshItem(QueryGuildShopInfoRes shop, CommodityInfo commodityInfo)
 {
     if (BaseMarketManager.mMarketClass != MarketClass.GuildMarketManager)
     {
         return;
     }
     if (shop == null)
     {
         return;
     }
     this.RefreshInfo(shop.remainingRefreshTime, GuildMarketManager.Instance.GetRemainRefreshTimes());
     if (commodityInfo == null)
     {
         return;
     }
     for (int i = 0; i < this.ItemList1.Count; i++)
     {
         OOShoppingPage oOShoppingPage = this.ItemList1[i];
         for (int j = 0; j < oOShoppingPage.Items.Count; j++)
         {
             if (oOShoppingPage.Items[j].iId == commodityInfo.commodityId)
             {
                 this.SetShoppingUnit1(oOShoppingPage.Items[j], commodityInfo);
                 return;
             }
         }
     }
 }
Beispiel #2
0
 public void RefreshShop(QueryGuildShopInfoRes shop)
 {
     if (BaseMarketManager.mMarketClass != MarketClass.GuildMarketManager)
     {
         return;
     }
     if (shop == null)
     {
         return;
     }
     this.ShiftType = ListShifts.GetShift(5, this.CurrentPageIndex, true);
     this.RefreshInfo(shop.remainingRefreshTime, GuildMarketManager.Instance.GetRemainRefreshTimes());
     this.RefreshItemList1(shop.info);
 }
Beispiel #3
0
 private void OnQueryGuildShopInfoRes(short state, QueryGuildShopInfoRes down = null)
 {
     WaitUI.CloseUI(0u);
     if (state != 0)
     {
         StateManager.Instance.StateShow(state, 0);
         return;
     }
     if (down != null)
     {
         if (this.mGuildMarketInformation == null)
         {
             this.mGuildMarketInformation = new GuildMarketInformation();
         }
         this.mGuildMarketInformation.shopInfo = down;
         this.mGuildMarketInformation.ResetTimeCountDown(down.remainingRefreshTime);
         this.RefreshShop();
     }
 }