From 51ba2a7ce07c71e57f0c07e0dc5c3c3370f30ab0 Mon Sep 17 00:00:00 2001 From: benni-tec Date: Mon, 30 Oct 2023 09:08:35 +0100 Subject: [PATCH] Clarification of TsxProvider behaviour in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 41b163f..874776a 100644 --- a/README.md +++ b/README.md @@ -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()]); ```