Skip to content

Commit 1454252

Browse files
author
benni-tec
committed
Merge remote-tracking branch 'origin/flame-engine#70-tsx-provider'
2 parents aeef188 + 51ba2a7 commit 1454252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ class SingleTsxProvider extends TsxProvider {
6363
}
6464
}
6565
```
66-
And use it in the parseTmx method
66+
And use it in the parseTmx method. Keep in mind that the first TsxProvider that can provide a source is used!
6767
```dart
6868
final String tmxBody = /* ... */;
69-
final TiledMap mapTmx = TileMapParser.parseTmx(tmxBody, tsx: CustomTsxProvider());
69+
final TiledMap mapTmx = TileMapParser.parseTmx(tmxBody, tsxProviders: [SingleTsxProvider(), MultipleTsxProvider()]);
7070
7171
```
7272

0 commit comments

Comments
 (0)