PlantSpec constructor

const PlantSpec({
  1. required String spriteAsset,
  2. required int count,
  3. required double width,
  4. required double height,
  5. double zOffset = 0.0,
  6. int billboard = 1,
  7. double flipProbability = 0.5,
  8. int layers = 1,
  9. double widthVariation = 0.0,
  10. double heightVariation = 0.0,
  11. double planeSize = 0.0,
  12. double pitchVariation = 0.0,
  13. double edgeFadeWidth = 0.0,
  14. double exclusionOffset = 0.01,
  15. bool useFootprintExclusion = false,
  16. List<List<double>>? excludeSquares,
  17. bool scrolling = true,
})

Implementation

const PlantSpec({
  required this.spriteAsset,
  required this.count,
  required this.width,
  required this.height,
  this.zOffset = 0.0,
  this.billboard = 1,
  this.flipProbability = 0.5,
  this.layers = 1,
  this.widthVariation = 0.0,
  this.heightVariation = 0.0,
  this.planeSize = 0.0,
  this.pitchVariation = 0.0,
  this.edgeFadeWidth = 0.0,
  this.exclusionOffset = 0.01,
  this.useFootprintExclusion = false,
  this.excludeSquares,
  this.scrolling = true,
});