-
Notifications
You must be signed in to change notification settings - Fork 106
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
Remove Data
types from the interface
#163
Conversation
I'd love to use a proc macro instead of |
|
Had to end up making both |
Yeah, the inconsistency isn't very nice, and in fact I've been struggling with the same in Tiled, for example to avoid placing tile objects in these object groups and workarounds for assigning IDs to these objects, which are normally counted per map. But I guess we can live with it. |
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.
Great work!
map, | ||
group, | ||
index: 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.
What is the logic behind these reformattings? Here it's wrapping them all on their own line, but just a few lines up you removed some wrapping to form Ok((Self { layers }, properties))
. I could be fine with either notation, but why keep changing these around?
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.
No reason for it, just rustfmt doing its thing.
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.
Can we do a single pass of rustfmt to avoid these changes, or does it actually like to change the wrapping back and forth?
* Add properties to `Object` * Add properties to `FiniteTileLayer` * Add properties to `Layer` * Add properties to `ImageLayer` * Add properties to `ObjectLayerData` * Remove `data()`; Replace `map()` * Add properties to `LayerTile` * `MapWrapper` -> `map_wrapper!` * Fix examples/tests * Limit visibility of data types * Make `Tile::collision` public again * Doc tweak Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
Closes #162 & closes #158.