CardData.cs 1.1 KB

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