TiledWorldBuilder constructor
TiledWorldBuilder(
- String path, {
- Vector2? forceTileSize,
- ValueChanged<
Object> ? onError, - double tileSizeToUpdate = 0,
- 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);
}