Ins_BreedEggSlot.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_BreedEggSlot
  10. *
  11. * @author c'y'zhao
  12. */
  13. class Ins_BreedEggSlot extends Object_ext{
  14. /**
  15. * 坑位id
  16. */
  17. public $uid = 0;
  18. /**
  19. * 坑位上孵化的蛋
  20. */
  21. public $eggId = 0;
  22. /**
  23. * 开始孵化时间
  24. * @var type
  25. */
  26. public $endTs = 0;
  27. /**
  28. * 是否解锁 0:没有
  29. * @var type
  30. */
  31. public $unlock = 0;
  32. /**
  33. * 构造函数
  34. * @param type $args
  35. */
  36. public function __construct($args = null) {
  37. if($args !=null){
  38. parent::__construct($args);
  39. } else {
  40. }
  41. }
  42. /**
  43. * 配置
  44. * @return sm_pet_egg
  45. */
  46. public function mo() {
  47. $mo = GameConfig::pet_egg_getItem($this->eggId);
  48. my_Assert(null != $mo, ErrCode::err_const_no);
  49. return $mo;
  50. }
  51. }