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