Levels constructor
Levels({
- String name = '',
- List<
TileLayers> ? tileLayer, - List<
TileAnimations> ? animations, - List<
Object> ? objects, - Grid? grid,
- int selectedTileLayer = 0,
- Size? maxGridSize,
Implementation
Levels({
this.name = '',
List<TileLayers>? tileLayer,
List<TileAnimations>? animations,
List<Object>? objects,
Grid? grid,
this.selectedTileLayer = 0,
Size? maxGridSize
}){
this.grid = grid ?? Grid();
this.maxGridSize = maxGridSize ?? Size(this.grid.width.toDouble(),this.grid.height.toDouble());
this.tileLayer = tileLayer??[TileLayers(length: currentGridLength)];
this.animations = animations??[];
this.objects = objects??[];
}