using FL.Network; using System; using System.Collections.Generic; using XGame.Framework.Data; namespace FL.Data { public class DragonEggData : DataSingleton, IDisposable { private List _treasureChestIdList = new List { 3001, 3002, 3003, 3004, 3005};// 龙蛋(品质)宝箱对应的道具id列表 /// /// 宝藏id(积分进度条) /// public int DragonTreasureId { set; get; } /// /// 当前宝藏进度积分 /// public int DragonTreasureSocre { set; get; } /// /// 领取龙蛋积分宝箱掉落道具列表 /// public List DragonTreasureRewardItems; /// /// 龙蛋宝箱等级 /// public int Level { set; get; } /// /// 龙蛋宝箱升级经验 /// public long Exp { set; get; } /// /// 龙蛋升级结束时间 /// public long UpLvTime { set; get; } /// /// 减少时间按钮的冷却时间(使用免费观看广告获取宝箱升级减少时间) /// public long WatchADCdTime { set; get; } /// /// 今日观看广告的次数 /// public int WatchADCount { set; get; } /// /// 是否已解锁装备分解功能 /// public bool IsUnLockDecompose { set; get; } /// /// 开龙蛋宝箱掉落的物品数据 /// public List DropItems { set; get; } // 测试今日不再显示出售高战力装备提示 public bool CheckDayTipsKey { set; get; } /// /// 查找索引 /// /// /// public int GetTreasureChestIndex(int _treasureChestId) { return _treasureChestIdList.FindIndex(x => x == _treasureChestId); } /// /// 获取龙蛋品质宝箱数量 /// /// /// public int GetTreasureChestId(int index) { return _treasureChestIdList[index]; } void IDisposable.Dispose() { if (_treasureChestIdList != null) { _treasureChestIdList.Clear(); } if (DragonTreasureRewardItems != null) { DragonTreasureRewardItems.Clear(); DragonTreasureRewardItems = null; } } } }