CardData.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using ET;
  2. using System.Collections.Generic;
  3. using cfg.GfgCfg;
  4. namespace GFGGame
  5. {
  6. public class CardData
  7. {
  8. public int id;
  9. public int pageIndex; //当前列表类型
  10. public int index; //当前列表里的第几个
  11. public int lv;
  12. public int exp;
  13. public int star;
  14. public int _resIndex = -1;//当前卡面,0默认,1特殊
  15. public int resIndex;
  16. public int mainScore;
  17. public List<string> _resources;//所有配置卡面
  18. public List<string> resources
  19. {
  20. get
  21. {
  22. if(_resources == null)
  23. {
  24. ItemCfg itemCfg = CommonDataManager.Tables.TblItemCfg.GetOrDefault(id);
  25. _resources = CardDataManager.GetCardResources(itemCfg);
  26. }
  27. return _resources;
  28. }
  29. }
  30. public Dictionary<int, int> scores;
  31. public Dictionary<int, int> starRewardsState = new Dictionary<int, int>();//升星奖励领取状态,只记录可领和已领
  32. public ItemCfg itemCfg
  33. {
  34. get
  35. {
  36. return CommonDataManager.Tables.TblItemCfg.GetOrDefault(id);
  37. }
  38. }
  39. public string fromUIType;
  40. }
  41. }