NumericAttributesCast.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. namespace App\Module\GameItems\Casts;
  3. use Illuminate\Database\Eloquent\Model;
  4. use UCore\Model\CastsAttributes;
  5. class NumericAttributesCast extends CastsAttributes
  6. {
  7. /**
  8. * 宝箱最小数量
  9. *
  10. * @var int $min_drop_count
  11. */
  12. public int $min_drop_count = 0;
  13. /**
  14. * 宝箱最大数量
  15. *
  16. * @var int $max_drop_count
  17. */
  18. public int $max_drop_count = 0;
  19. /**
  20. * 测试属性浮点类型
  21. *
  22. * @var float $fint
  23. */
  24. public float $fint = 0.1;
  25. /**
  26. * 减少作物生长时间
  27. *
  28. * @var int $intd
  29. */
  30. public int $crop_growth_time = 0;
  31. /**
  32. * 增加宠物体力
  33. * @var int $pet_power
  34. */
  35. public int $pet_power = 0;
  36. /**
  37. * 使用后随即奖励物品组
  38. * @var int $reward_group_id
  39. */
  40. public int $reward_group_id = 0;
  41. /**
  42. * 增加宠物经验
  43. * @var int $pet_exp
  44. */
  45. public int $pet_exp = 0;
  46. /**
  47. * 测试属性字符串类型
  48. * @var string $stval
  49. */
  50. public string $stval = ' ';
  51. }