Info_Task.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. /**
  52. * 活动任务信息
  53. * @var type
  54. */
  55. public $activeTaskInfo = null;
  56. public $activeTaskLength = 0;
  57. /**
  58. * 7日
  59. * @var type
  60. */
  61. public $day7Point = 0;
  62. /**
  63. * 7日活动开始时间
  64. * @var type
  65. */
  66. public $day7_startTs = 0;
  67. /**
  68. * 日常
  69. * @var type
  70. */
  71. public $dailyTaskPoint = 0;
  72. /**
  73. * 周常
  74. * @var type
  75. */
  76. public $weekTaskPoint = 0;
  77. /**
  78. * 活跃点领取记录
  79. * @var type
  80. */
  81. #[ArrayType]
  82. public $activePointReceived = array();
  83. public function initialize() {
  84. //$this->taskcards = new \stdClass();
  85. //$this->achieveDic = new \stdClass();
  86. // $day7List = GameConfig::activeTask_type_getItemArray(Enum_ActiveTaskType::WeekTask);
  87. // $length = $this->activeTaskLength;
  88. // foreach ($day7List as $key => $task) {
  89. // $length += 1;
  90. // $ins_TaskStep_Active = new Ins_TaskStep_Active($task->id);
  91. // $ins_TaskStep_Active->uid = $length;
  92. // $ins_TaskStep_Active->state = Enum_TaskCardStateType::ing;
  93. // $this->activeTaskInfo->$length = $ins_TaskStep_Active;
  94. // }
  95. // $this->activeTaskLength = $length;
  96. }
  97. public function __construct($arg = null) {
  98. if ($arg == null) {
  99. $this->taskcards = new \stdClass();
  100. $this->achieveDic = new \stdClass();
  101. $this->activeTaskInfo = new \stdClass();
  102. } else {
  103. parent::__construct($arg);
  104. }
  105. }
  106. }