PveData.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using XGame.Database;
  2. using XGame.Framework.Data;
  3. namespace FL.Data
  4. {
  5. /// <summary>
  6. /// 主线关卡/副本数据
  7. /// </summary>
  8. public class PveData : DataSingleton<PveData>
  9. {
  10. #region 主线关卡
  11. /// <summary>
  12. /// 当前章节id
  13. /// </summary>
  14. public int chapterId = 10010101;
  15. /// <summary>
  16. /// 服务端下发的最近通关的章节id,新账号记录是零
  17. /// </summary>
  18. public int pveId;
  19. /// <summary>
  20. /// 每场pve战斗唯一标识
  21. /// </summary>
  22. public string fightKey;
  23. /// <summary>
  24. /// 挂机奖励 最后一次结算时间
  25. /// 毫秒
  26. /// </summary>
  27. public long lastTime;
  28. /// <summary>
  29. /// 挂机奖励 已结算时长
  30. /// 毫秒
  31. /// </summary>
  32. public int overTime;
  33. /// <summary>
  34. /// 今日加速次数
  35. /// 为零表示今日未加速
  36. /// </summary>
  37. public int speedupTimes;
  38. public string MapAssetName
  39. {
  40. get
  41. {
  42. var chapter = ChapterTableRepo.Get(chapterId);
  43. var map = MapTableRepo.Get(chapter.Map);
  44. return map.AssetName;
  45. }
  46. }
  47. #endregion
  48. }
  49. }