Ins_Achieve.php 919 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 Ins_Achieve
  10. *
  11. * @author c'y'zhao
  12. */
  13. class Ins_Achieve extends Object_ext{
  14. public $typeId = 0;
  15. /**
  16. * 当前进度条的最大值
  17. * @var type
  18. */
  19. public $max = 0;
  20. /**
  21. * 累计值
  22. * @var type
  23. */
  24. public $val = 0;
  25. /**
  26. * 领取奖励记录
  27. * @var type
  28. */
  29. public $received = 0;
  30. /**
  31. * 类型
  32. * @var type
  33. */
  34. public $cmd = 0;
  35. public function __construct($args = null) {
  36. if ($args != null) {
  37. parent::__construct($args);
  38. }
  39. }
  40. public function getAchieveMo() {
  41. return GameConfig::achieve_getItem($this->typeId);
  42. }
  43. }