Info_UserGateDifficulty.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. * 战斗总次数
  26. */
  27. public $TotalNum;
  28. /**
  29. * 当天战斗的次数
  30. */
  31. public $Times;
  32. /**
  33. * 已经消灭的bossid集合
  34. * @var array
  35. */
  36. public $killedBoss;
  37. /**
  38. * 章节星数奖励
  39. * @var { "chapterId":{"1":[],"2":[],"3":[]},"chapterId":{...}:.... }
  40. */
  41. public $chapterStarsRwd;
  42. function __construct($arg = null) {
  43. if (null === $arg) {
  44. $this->TotalNum = 0;
  45. $this->Times = 0;
  46. $this->normal = new Ins_UserGatesModel();
  47. $this->normal->initialize();
  48. $this->hard = new Ins_UserGatesModel;
  49. $this->hard->initialize();
  50. $this->elite = new Ins_UserGatesModel;
  51. $this->elite->initialize();
  52. $this->killedBoss = ArrayInit();
  53. $this->chapterStarsRwd = ObjectInit();
  54. } else {
  55. parent::__construct($arg);
  56. }
  57. }
  58. }