Contain all layer types in an enum (#131)
* Contain all layer types in an enum * Implement `as_xlayer` for `LayerType` * Make id optional * Rename `ty` to `layer_type` * Remove `layer_index` * Move `as_x` functions to tests * Fix build
Showing
- CHANGELOG.md 6 additions, 0 deletionsCHANGELOG.md
- src/layers.rs 128 additions, 63 deletionssrc/layers.rs
- src/map.rs 7 additions, 17 deletionssrc/map.rs
- src/objects.rs 2 additions, 63 deletionssrc/objects.rs
- src/tile.rs 4 additions, 4 deletionssrc/tile.rs
- tests/lib.rs 43 additions, 22 deletionstests/lib.rs
Loading
Please register or sign in to comment