using FL.Data; using XGame.Framework.Network; namespace FL.Network { public class ActLongdanTreasureIdPushCtrl : MsgController { 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(); } else { DragonEggData.Instance.DragonTreasureRewardItems.Clear(); } DragonEggData.Instance.DragonTreasureRewardItems.AddRange(message.items); } } } }