using FL.Data; using XGame.Framework.Network; namespace FL.Network { public class ActLongdanItemsPushCtrl : MsgController { protected override void OnProcess(ActLongdanItemsPush message, object context) { if (message?.items.Count > 0) { DragonEggData.Instance.DropItems = message.items; foreach (var item in message.items) { if (item != null) { if (item?.count > 0) { // 非装备类型的道具物品 ItemData.Instance.AddItemData(item.id, item.count, true); } } } } } } }