예제 #1
0
    public void UpdateItems(int version, LuaTable props)
    {
        this.version = version;
        MarketData.dataMap.Clear();
        items.Clear();
        foreach (var p in props)
        {
            int key = Int32.Parse(p.Key);
            MarketData.InsertMarketData(key, version, (p.Value as LuaTable));
            items.Add(new MarketItem(MarketData.dataMap[key]));
        }
        foreach (var i in items)
        {
            if (i.resData.mode == 2)
            {//限购
                GetLimitNum(i.resData.marketVersion, i.resData.id);
            }
        }

        ShowMarketUIByTab();
        ShowHint();
    }