MapTerrain constructor
MapTerrain({})
Implementation
MapTerrain({
required this.value,
required this.sprites,
this.spritesProportion = const [],
this.type,
this.properties,
this.collisionsBuilder,
this.collisionOnlyCloseCorners = false,
}) {
var last = 0;
for (final element in spritesProportion) {
final value = (element * 100).toInt();
_rangeProportion.add(_RandomRange(last, last + value));
last += value;
}
}