123456789101112131415161718192021222324252627 |
- using FL.Data;
- using XGame.Framework.Network;
- namespace FL.Network
- {
- public class ActLongdanTreasureIdPushCtrl : MsgController<ActLongdanTreasureIdPush>
- {
- protected override void OnProcess(ActLongdanTreasureIdPush message, object context)
- {
- DragonEggData.Instance.DragonTreasureId = message.treasureId;
- DragonEggData.Instance.DragonTreasureSocre = message.progress;
- if (message.items != null && message.items.Count > 0)
- {
- if (DragonEggData.Instance.DragonTreasureRewardItems == null)
- {
- DragonEggData.Instance.DragonTreasureRewardItems = new System.Collections.Generic.List<KindItem>();
- }
- else
- {
- DragonEggData.Instance.DragonTreasureRewardItems.Clear();
- }
- DragonEggData.Instance.DragonTreasureRewardItems.AddRange(message.items);
- }
- }
- }
- }
|