TileMapLevel<T extends Tile> constructor

TileMapLevel<T extends Tile>({
  1. required Game game,
  2. required TileMap tileMap,
  3. required T makeTile(
    1. Point<int> point,
    2. int flags
    ),
  4. Point<double> initialCoordinates = const Point(0.0, 0.0),
  5. double initialHeading = 0.0,
  6. List<Ambiance>? ambiances,
  7. Map<String, Command>? commands,
  8. AssetReference? music,
  9. List<RandomSound>? randomSounds,
})

Create an instance.

Implementation

TileMapLevel({
  required super.game,
  required this.tileMap,
  required this.makeTile,
  this.initialCoordinates = const Point(0.0, 0.0),
  this.initialHeading = 0.0,
  super.ambiances,
  super.commands,
  super.music,
  super.randomSounds,
})  : _coordinates = initialCoordinates,
      _heading = initialHeading;