1234567891011121314151617181920212223242526272829303132 |
- using FL.Data;
- using XGame.Framework.Network;
- namespace FL.Network
- {
- public class ActLongdanTreasureIdPushCtrl : MsgController<ActLongdanTreasureIdPush>
- {
- protected override void OnProcess(ActLongdanTreasureIdPush message, object context)
- {
- if (message.treasureId != null)
- {
- DragonEggData.Instance.DragonTreasureId = message.treasureId;
- }
- if (message.progress != null)
- {
- 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);
- }
- }
- }
- }
|