public void setRandShopData(Variant msgData) { LGIUIRandshop lGIUIRandshop = (this.g_mgr.g_uiM as muUIClient).getLGUI("LGUIRandshopImpl") as LGIUIRandshop; bool flag = lGIUIRandshop == null; if (!flag) { bool flag2 = msgData.ContainsKey("ary_expire"); if (flag2) { lGIUIRandshop.setFreeRefresh(msgData); } bool flag3 = msgData["ary"] != null; if (flag3) { this._onceRefreshArr = msgData["ary"]; lGIUIRandshop.resetOnceRefresh(this._onceRefreshArr); } bool flag4 = msgData["bary"] != null; if (flag4) { this._batchRefreshArr = msgData["bary"]; lGIUIRandshop.resetBatchRefresh(this._batchRefreshArr); } } }
public void setBuyLog(Variant msgData) { this._maxid = msgData["maxid"]; Variant variant = msgData["ary"]; for (int i = 0; i < variant.Count; i++) { this._buyLogArr._arr.Add(variant[i]); } LGIUIRandshop lGIUIRandshop = (this.g_mgr.g_uiM as muUIClient).getLGUI("LGUIRandshopImpl") as LGIUIRandshop; bool flag = lGIUIRandshop == null; if (!flag) { lGIUIRandshop.addNewBuyLog(variant); } }
public void setOnceRefreshData(Variant msgData) { for (int i = 0; i < this._onceRefreshArr.Length; i++) { bool flag = this._onceRefreshArr[i]["id"] == msgData["id"]; if (flag) { this._onceRefreshArr[i]["cnt"] = this._onceRefreshArr[i] - msgData["cnt"]; bool flag2 = this._onceRefreshArr[i]["cnt"] == 0; if (flag2) { this._onceRefreshArr._arr.RemoveAt(i); } break; } } LGIUIRandshop lGIUIRandshop = (this.g_mgr.g_uiM as muUIClient).getLGUI("randshop") as LGIUIRandshop; bool flag3 = lGIUIRandshop == null; if (!flag3) { lGIUIRandshop.resetOnceRefresh(this._onceRefreshArr); } }