Info_Task.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /*
  3. * To change this license header, choose License Headers in Project Properties.
  4. * To change this template file, choose Tools | Templates
  5. * and open the template in the editor.
  6. */
  7. namespace loyalsoft;
  8. /**
  9. * Description of Info_Task
  10. *
  11. * @author c'y'zhao
  12. */
  13. class Info_Task extends Object_ext{
  14. /**
  15. * 任务卡道具(存在叠加)
  16. * @var
  17. */
  18. public $taskcards;
  19. /**
  20. * 任务卡索引
  21. * @var type
  22. */
  23. public $taskIndex = 0;
  24. /**
  25. * 每日任务累计值
  26. * @var type
  27. */
  28. public $dailyTaskAccumulate = 0;
  29. /**
  30. *
  31. * @var type
  32. */
  33. #[ArrayType]
  34. public $dailyTaskAccumulateDrawed = array();
  35. /**
  36. * 周常任务累计值
  37. * @var type
  38. */
  39. public $weekTaskAccumulate = 0;
  40. /**
  41. *
  42. * @var type
  43. */
  44. #[ArrayType]
  45. public $weekTaskAccumulateDrawed = array();
  46. /**
  47. * 成就信息
  48. * @var type
  49. */
  50. public $achieveDic = null;
  51. public function initialize() {
  52. $this->taskcards = new \stdClass();
  53. $this->achieveDic = new \stdClass();
  54. }
  55. public function __construct($arg = null) {
  56. if ($arg == null) {
  57. $this->taskcards = new \stdClass();
  58. $this->achieveDic = new \stdClass();
  59. } else {
  60. parent::__construct($arg);
  61. }
  62. }
  63. }