-
Notifications
You must be signed in to change notification settings - Fork 102
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
Flatten Vec<Vec<LayerTile>> to Vec<LayerTile> #128
Conversation
assert_eq!(tiles[100].gid, 17); | ||
assert_eq!(tiles[200].gid, 0); | ||
assert_eq!(tiles[200 + 1].gid, 17); | ||
assert!(tiles[9900..9999].iter().map(|t| t.gid).all(|g| g == 0)); |
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.
This is a bit hard to read, but it should be fixed soon when we add Layer.get_tile
(#125).
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.
Looks good!
Could you add any interface changes to CHANGELOG.md? |
This simplifies code and should be better on memory usage since it is less fragmented. Also added `width` and `height` attributes to `Layer`. Closes mapeditor#54
af5d86b
to
3b196ee
Compare
This simplifies code and should be better on memory usage since it is less fragmented.
Also added
width
andheight
attributes toLayer
.Closes #54