WorldMapByTiled constructor

WorldMapByTiled(
  1. WorldMapReader<TiledMap> reader, {
  2. Vector2? forceTileSize,
  3. ValueChanged<Object>? onError,
  4. double sizeToUpdate = 0,
  5. Map<String, ObjectBuilder>? objectsBuilder,
})

Implementation

WorldMapByTiled(
  WorldMapReader<TiledMap> reader, {
  Vector2? forceTileSize,
  ValueChanged<Object>? onError,
  double sizeToUpdate = 0,
  Map<String, ObjectBuilder>? objectsBuilder,
}) : super(const []) {
  this.sizeToUpdate = sizeToUpdate;
  _builder = TiledWorldBuilder(
    reader,
    forceTileSize: forceTileSize,
    onError: onError,
    sizeToUpdate: sizeToUpdate,
    objectsBuilder: objectsBuilder,
  );
}