TiledWorldBuilder constructor

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

Implementation

TiledWorldBuilder(
  this.path, {
  this.forceTileSize,
  this.onError,
  this.tileSizeToUpdate = 0,
  Map<String, ObjectBuilder>? objectsBuilder,
}) {
  _objectsBuilder = objectsBuilder ?? {};
  _basePath = path.replaceAll(path.split('/').last, '');
  _reader = TiledReader(path);
}