RandomScore constructor

RandomScore(
  1. Entity entity, {
  2. int from = 0,
  3. required int to,
  4. String objective = 'objd_random',
  5. String targetFilePath = 'objd',
  6. String? targetFileName,
})

The RandomScore Widget assigns a random value to a score using the UUID of an AreaEffectCloud.

Implementation

RandomScore(
  this.entity, {
  this.from = 0,
  required this.to,
  this.objective = 'objd_random',
  this.targetFilePath = 'objd',
  this.targetFileName,
}) : _diff = to - from + 1;