123456789101112131415161718192021 |
- using FL.Data;
- using XGame.Framework.Network;
- namespace FL.Network
- {
- public class ActItemPushCtrl : MsgController<ActItemPush>
- {
- protected override void OnProcess(ActItemPush message, object context)
- {
- if (message?.act_item?.Count > 0)
- {
- foreach (var item in message.act_item)
- {
- ItemData.Instance.AddItemData(item.id, item.count);
- }
- EventSingle.Instance.Notify(EventDefine.UpdataItemData,message.act_item);
- }
- }
-
- }
- }
|