mapeditor / rs-tiled

Reads files from the Tiled editor into Rust
https://crates.io/crates/tiled
MIT License
268 stars 103 forks source link

Have layer common data in a single struct #130

Closed aleokdev closed 2 years ago

aleokdev commented 2 years ago

Pack all common data from all types of layers in a single struct and specialize between different layer types (e.g. group, image, tile) with an enum. This will allow to have all map layers in a single member and remove the layer_index member.

aleokdev commented 2 years ago

Screenshot_20220125_204633 Fun awaits