NumericAttributesCast.php 752 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 string $stval
  34. */
  35. public string $stval = ' ';
  36. }