| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace App\Module\GameItems\Casts;
- use Illuminate\Database\Eloquent\Model;
- use UCore\Model\CastsAttributes;
- class NumericAttributesCast extends CastsAttributes
- {
- /**
- * 宝箱最小数量
- *
- * @var int $min_drop_count
- */
- public int $min_drop_count = 0;
- /**
- * 宝箱最大数量
- *
- * @var int $max_drop_count
- */
- public int $max_drop_count = 0;
- /**
- * 测试属性浮点类型
- *
- * @var float $fint
- */
- public float $fint = 0.1;
- /**
- * 测试属性整数类型
- *
- * @var int $intd
- */
- public int $intd = 1;
- /**
- * 测试属性字符串类型
- * @var string $stval
- */
- public string $stval = ' ';
- }
|