Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/flame-engine#70-tsx-provider'
Browse files Browse the repository at this point in the history
  • Loading branch information
benni-tec committed Nov 6, 2023
2 parents aeef188 + 51ba2a7 commit 1454252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ class SingleTsxProvider extends TsxProvider {
}
}
```
And use it in the parseTmx method
And use it in the parseTmx method. Keep in mind that the first TsxProvider that can provide a source is used!
```dart
final String tmxBody = /* ... */;
final TiledMap mapTmx = TileMapParser.parseTmx(tmxBody, tsx: CustomTsxProvider());
final TiledMap mapTmx = TileMapParser.parseTmx(tmxBody, tsxProviders: [SingleTsxProvider(), MultipleTsxProvider()]);
```

Expand Down

0 comments on commit 1454252

Please sign in to comment.