Info_UserGateDifficulty.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * 玩家关卡数据 extends Object
  5. * @version
  6. * 1.0.0 Created at 2017-2-14. by --gwang
  7. * @author gwang (mail@wanggangzero.cn)
  8. * @copyright ? 2017-2-14, SJZ LoyalSoft Corporation & gwang. All rights reserved.
  9. */
  10. class Info_UserGateDifficulty extends Object_ext {
  11. ///目前是按关卡的难度来分的结果
  12. /**
  13. * 普通关卡
  14. */
  15. public $normal;
  16. /**
  17. * 困难关卡
  18. */
  19. public $hard;
  20. /**
  21. * 精英关卡
  22. */
  23. public $elite;
  24. //
  25. // <editor-fold defaultstate="collapsed" desc="'淘汰'的功能">
  26. /**
  27. * 战斗总次数
  28. * @deprecated since 2021年3月2日 没人关注这个了
  29. */
  30. public $TotalNum;
  31. /**
  32. * 当天战斗的次数
  33. * @deprecated since version 2021.3.2 策划都不知道有这种设定了吧, 狗熊掰棒子
  34. */
  35. public $Times;
  36. /**
  37. * 已经消灭的bossid集合
  38. * @deprecated since version 2021.3.2 没人关注这个了(缺少延续性)
  39. * @var array
  40. */
  41. public $killedBoss;
  42. /**
  43. * 章节星数奖励
  44. * @deprecated since version 2021.3.2 后面没有评星的需求了, 打关卡主要是掉落物品.
  45. * @var { "chapterId":{"1":[],"2":[],"3":[]},"chapterId":{...}:.... }
  46. */
  47. public $chapterStarsRwd;
  48. // </editor-fold>
  49. //
  50. function __construct($arg = null) {
  51. if (null === $arg) {
  52. $this->TotalNum = 0;
  53. $this->Times = 0;
  54. $this->normal = new Ins_UserGatesModel();
  55. $this->normal->initialize();
  56. $this->hard = new Ins_UserGatesModel;
  57. $this->hard->initialize();
  58. $this->elite = new Ins_UserGatesModel;
  59. $this->elite->initialize();
  60. $this->killedBoss = ArrayInit();
  61. $this->chapterStarsRwd = ObjectInit();
  62. } else {
  63. parent::__construct($arg);
  64. }
  65. }
  66. }