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

Add class_ getter for type #48

Merged
merged 1 commit into from
Jul 8, 2022
Merged

Add class_ getter for type #48

merged 1 commit into from
Jul 8, 2022

Conversation

ufrshubham
Copy link
Collaborator

Since Tiled 1.9, the Type property for objects has been changed to Class by default. This PR modifies the parsing logic to first look for class and then type before using the default (empty string) value. We need to look for both keys because Tiled has also provided a compatibility option in project properties using which, users can force Tiled to write out Class property as type in exported files. I've also added a getter called class_ which returns type so that it will be easier for users to find this property.

Details about this change is mentioned in Tiled 1.9 release notes under section "Unified Custom Types" : https://www.mapeditor.org/2022/06/25/tiled-1-9-released.html

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.

None yet

2 participants