//更新金币相关数据列表 public void UpdateGoldGoodsArr(GoldGoods goldGoods) { foreach (SysVipMallVo mallVo in _goldGoodsList) { if (mallVo.id == goldGoods.id) { mallVo.buy_max = (int)goldGoods.remain; } } DataUpdate(UPDATE_GOLDGOODS); }
//金币物品信息返回 private void Fun_15_5(INetData data) { MallDiamInfoMsg_15_5 goldInfoMsg = new MallDiamInfoMsg_15_5(); goldInfoMsg.read(data.GetMemoryStream()); foreach (PDiamGoods pGoldGoods in goldInfoMsg.goods) { GoldGoods goldGoods = new GoldGoods(); goldGoods.id = pGoldGoods.id; goldGoods.remain = pGoldGoods.remain; Singleton <StoreMode> .Instance.UpdateGoldGoodsArr(goldGoods); } }