ActEquipLsDelxhidsPushCtrl.cs 726 B

12345678910111213141516171819
  1. using System.Collections.Generic;
  2. using XGame.Framework.Network;
  3. namespace FL.Network
  4. {
  5. public class ActEquipLsDelxhidsPushCtrl : MsgController<ActEquipLsDelxhidsPush>
  6. {
  7. protected override void OnProcess(ActEquipLsDelxhidsPush message, object context)
  8. {
  9. //XGame.Log.Debug("消息201502 ActEquipLsDelxhidsPushCtrl");
  10. // 移除装备背包里的装备,穿戴移除只又在身上装备栏空的时候才会下发该消息
  11. foreach (var delId in message.delxhids)
  12. {
  13. EquipData.Instance.RemoveEquip(delId, true);
  14. }
  15. EventSingle.Instance.Notify(EventDefine.RemoveTemporaryEquip, message.delxhids);
  16. }
  17. }
  18. }