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