build method
Implementation
Future<WorldBuildData> build() async {
try {
final map = await reader.readMap();
await _load(map);
} catch (e) {
onError?.call(e);
// ignore: avoid_print
print('(SpritefusionWorldBuilder) Error: $e');
rethrow;
}
return Future.value(
WorldBuildData(
map: WorldMap(
_layers,
tileSizeToUpdate: sizeToUpdate,
),
components: components,
),
);
}