Skip to content

[Tiled] add list property type support - #7864

Open
Quillraven wants to merge 4 commits into
libgdx:masterfrom
Quillraven:master
Open

Quillraven wants to merge 4 commits into
libgdx:masterfrom
Quillraven:master

Conversation

@Quillraven

@Quillraven Quillraven commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds support for Tiled's list attributes. I used the existing TiledMapPropertiesTest and added a few more objects. I am not sure if I covered all cases because there are so many combinations now with classes/lists/nested classes/nested lists. Hope some of the Tiled guys like @BoBIsHere86 can have a look at it as well and try out some other cases that I have missed.


The solution I went for is that we store list attributes as GDX Array instances. From what I have seen this is also how Tiled stores it and a Tiled array like [1, 2, "some", "text"] becomes the LibGDX Array counterpart.


A Tiled list like this:
image

becomes this GdxArray:
image

@Quillraven

Copy link
Copy Markdown
Contributor Author

@MRZ07 @damnedpie @tommyettinger notify some people from previous Tiled PRs

Comment thread gdx/src/com/badlogic/gdx/maps/tiled/BaseTiledMapLoader.java Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants