/// <summary> /// 物品被人买走了 /// </summary> /// <param name="cmd"></param> public void OnResponRemoveConsignItem(stRemoveItemInfoConsignmentUserCmd_S cmd) { needReqItemSellLog = true; BaseItem item = DataManager.Manager <ItemManager>().GetBaseItemByQwThisId((uint)cmd.market_id); if (item != null) { string txt = DataManager.Manager <TextManager>().GetLocalFormatText(LocalTextType.Talk_System_jishouhangchushouwupin, item.Name); ChatDataManager.SendToChatSystem(txt); } if (itemSellInfo != null && cmd != null) { for (int i = 0; i < itemSellInfo.consignmentItemList.Count; i++) { if (itemSellInfo.consignmentItemList[i].Market_ID == cmd.market_id) { itemSellInfo.consignmentItemList.RemoveAt(i); return; } } } }
public void OnResponRemoveConsignItem(stRemoveItemInfoConsignmentUserCmd_S cmd) { DataManager.Manager <ConsignmentManager>().OnResponRemoveConsignItem(cmd); }