-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Making tile.type
and layer.class_
compatible with Tiled 1.9's new Unified Custom Types ("class")
#50
Making tile.type
and layer.class_
compatible with Tiled 1.9's new Unified Custom Types ("class")
#50
Changes from 5 commits
73eb09b
3508db5
d80cdef
86d1839
a149e3c
1f536c6
72d2160
f3152ab
6e5c313
719f969
f486323
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,10 @@ class Tile { | |
static Tile parse(Parser parser) { | ||
return Tile( | ||
localId: parser.getInt('id'), | ||
type: parser.getStringOrNull('type'), | ||
|
||
/// Tiled 1.9 "type" has been moved to "class" | ||
type: parser.getStringOrNull('type') ?? parser.getStringOrNull('class'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to make it consistent with #48, you can make it check for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed the ordering. I think with Tiled 1.9 you can add
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For |
||
|
||
probability: parser.getDouble('probability', defaults: 0), | ||
terrain: parser | ||
.getStringOrNull('terrain') | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: tiled | ||
version: 0.8.3 | ||
version: 0.8.4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should normally not be bumped in this PR, but since I'll do a release after this is merged it doesn't matter this time. |
||
description: A Dart Tiled library. Parse your TMX files into useful representations. Compatible with Flame. | ||
homepage: https://github.com/flame-engine/tiled.dart | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should never remove entries from the changelog, if the entry was wrong it should be explained in the new entry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad, I got the versions mixed up because when I forked this wasn't here, I'll undelete this