TiledWorldBuilder constructor

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

Implementation

TiledWorldBuilder(
  this.reader, {
  this.forceTileSize,
  this.onError,
  this.sizeToUpdate = 0,
  Map<String, ObjectBuilder>? objectsBuilder,
}) {
  _objectsBuilder = objectsBuilder ?? {};
  _basePath = reader.basePath;
}