using FL.Data; using XGame.Framework.Network; namespace FL.Network { public class ActItemPushCtrl : MsgController { 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); } } } }