This pull request fixes parsing of tilemaps formatted in .tmx with layer data encoding set to CSV. It's actually kind of surprising this issue wasn't addressed before because AFAIK this is Tiled's default configuration.
When parsing a layer, its data was assumed to be a list. This already works well for JSON tilemaps. I added support to convert the CSV String into a List<int>.
This commit also includes a test for this encoding which would fail and throw a TypeError before.
This pull request fixes parsing of tilemaps formatted in .tmx with layer data encoding set to CSV. It's actually kind of surprising this issue wasn't addressed before because AFAIK this is Tiled's default configuration.
When parsing a layer, its data was assumed to be a list. This already works well for JSON tilemaps. I added support to convert the CSV
String
into aList<int>
.This commit also includes a test for this encoding which would fail and throw a
TypeError
before.