Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiled editor now uses "class" instead of "type" #369

Open
DigiEggz opened this issue Jul 20, 2022 · 1 comment
Open

Tiled editor now uses "class" instead of "type" #369

DigiEggz opened this issue Jul 20, 2022 · 1 comment

Comments

@DigiEggz
Copy link
Contributor

DigiEggz commented Jul 20, 2022

Tiled 1.9 changed the name of the "type" property to "class". This causes a problem for the type variable within TiledObject.

The type variable is set using the XML attribute source.att.type, but to retrieve the class node you'd need to get source.att.class, which throws "Unexpected class" because the name "class" is reserved. Tiled allows for a compatibility setting to be toggled to force the name of the variable stay as "type", but new users unaware of this will have problems with the latest Tiled.

Is there an easy way around this?

@Geokureli
Copy link
Member

gonna be a bit before I can get to this, but I will

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

No branches or pull requests

2 participants