PlantSpec constructor
const
PlantSpec({
- required String spriteAsset,
- required int count,
- required double width,
- required double height,
- double zOffset = 0.0,
- int billboard = 1,
- double flipProbability = 0.5,
- int layers = 1,
- double widthVariation = 0.0,
- double heightVariation = 0.0,
- double planeSize = 0.0,
- double pitchVariation = 0.0,
- double edgeFadeWidth = 0.0,
- double exclusionOffset = 0.01,
- bool useFootprintExclusion = false,
- List<
List< ? excludeSquares,double> > - 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,
});