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