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