ActItemPushCtrl.cs 482 B

1234567891011121314151617
  1. using FL.Data;
  2. using XGame.Framework.Network;
  3. namespace FL.Network
  4. {
  5. public class ActItemPushCtrl : MsgController<ActItemPush>
  6. {
  7. protected override void OnProcess(ActItemPush message, object context)
  8. {
  9. foreach (var item in message.act_item)
  10. {
  11. ItemData.Instance.AddItemData(item.id, item.count);
  12. }
  13. EventSingle.Instance.Notify(EventDefine.UpdataItemData,message.act_item);
  14. }
  15. }
  16. }