Skip to content
Snippets Groups Projects
  1. Apr 25, 2022
  2. Mar 28, 2022
  3. Mar 14, 2022
    • Alejandro Perea's avatar
      Add loader type (#193) · 7c072c9f
      Alejandro Perea authored
      * Add `Loader` and map loading functions
      
      * Update examples, doc & tests
      
      * Add tileset loading functions
      
      * Fix unrelated broken intradoc link
      
      * Fix intradoc link
      
      * Fix more docs
      
      * Update changelog and readme
      
      * Fix warnings
      
      * Change version, remove dead code
      7c072c9f
  4. Mar 10, 2022
  5. Mar 08, 2022
    • Alejandro Perea's avatar
      Implement Deref for wrapper types (#182) · 72c10e42
      Alejandro Perea authored
      * Implement `Deref<Target = TData>` for `T`
      
      * Move data properties to their respective data type
      
      * Add docs to Data types
      
      * Remove properties to user-side members
      
      * Fix example/test builds
      
      * Address PR comment
      
      * Add map member properties
      
      * Address PR comments
      
      * Fix tests
      
      * Address PR comment
      72c10e42
  6. Mar 04, 2022
  7. Feb 23, 2022
  8. Feb 16, 2022
    • Alejandro Perea's avatar
      Remove `Data` types from the interface (#163) · 4227705a
      Alejandro Perea authored
      
      * 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: default avatarThorbjørn Lindeijer <bjorn@lindeijer.nl>
      4227705a
  9. Feb 14, 2022
    • Alejandro Perea's avatar
      Refactor chunk system (#157) · bbdba30b
      Alejandro Perea authored
      * Refactor chunk system
      - Add `FiniteTileLayer` & `InfiniteTileLayer`
      - Chunks are now stored by chunk position
      - Add `InternalChunk` for holding mid-parse chunk info
      
      * Fix tests
      
      * Cleanup
      
      * Make chunk constructor private
      
      * Address PR comments
      
      * Box chunk tiles
      
      * Convert numeric types before multiplication
      bbdba30b
  10. Feb 10, 2022
    • Anti-Alias's avatar
      Add group layer support (#146) · bb77240f
      Anti-Alias authored
      * Adding group layer support
      
      * Added test case and fixed parsing code
      
      * Adding comma
      
      * Adding missing newline
      
      * Merging GID changes
      
      * Merging GID changes
      
      * Cleaning files
      
      * Cleaning files
      
      * Cleaning files
      bb77240f
  11. Feb 09, 2022
    • Alejandro Perea's avatar
      Hide GIDs as internal details (#135) · df98e9f3
      Alejandro Perea authored
      
      * Partial commit
      
      * Partial commit
      
      * Partial commit
      
      * Some suggested changes and fixed tests (except infinite)
      
      * Replaced `tile` member in `LayerTileRef` with a function to get an
        `Option<&Tile>`.
      
      * Replaced `Map::get_tile_by_gid` with `Map::get_tileset_for_gid`, which
        just returns the `Option<&Tileset>`. It also does a reverse search,
        which fixes the lookup in case an external tileset has grown since the
        map was last saved.
      
      * Replaced `Tileset::get_tile_by_gid` with `Tileset::get_tile`, since
        subtracting of the `first_gid` already happens when creating the
        `LayerTileRef`. Also, we eventually should remove `first_gid` from
        `Tileset`, since it should be possible to share a single tileset
        instance betweeen several maps.
      
      * Pre-allocate the tiles hash map for the expected number of tiles and
        use `or_default` instead of `or_insert_with(Default::default)`.
      
      * [nonbuilding] Move ownership of tilesets
      - Moves the ownership of tilesets from Map to an object implementing `TilesetCache`
      
      * Clean up
      
      * More cleanup
      
      * Organize layers into modules
      
      * Further modularization
      
      * Add layer wrappers
      
      * Implement `Clone + PartialEq + Debug` for wrappers
      
      * Fix example
      
      * Fix all tests except for test_infinite_tileset
      
      * Move layer utils to its own module
      
      * Better `Map::layers` documentation
      
      * `TilesetCache` -> `cache::ResourceCache`
      
      * Add `ResourcePath`, rename and add errors
      
      * Interface changes
      - Move embedded tilesets from cache to map
      - Store `Option<LayerTileData>` instead of `LayerTileData`
      
      * parser ->`&mut impl Iterator<Item=XmlEventResult>`
      
      * Document that tilesets are ordered by first GID
      
      * Fix the layer tiles using GIDs issue
      
      * Run `cargo fix`
      
      * Fix `test_infinite_tileset` tests
      
      * Implement a way to access object tile data
      
      * Rename `TiledWrapper` to `MapWrapper`
      
      * More efficient `get_or_try_insert_tileset_with`
      
      * Add `ResourcePathBuf`, use `Rc<Tileset>` in `Map`
      
      * Remove `MapTileset::first_gid`
      
      * Run `cargo fix`
      
      * Remove unrelated `Tileset` changes
      
      * Requested changes
      
      * Avoid reference counting when accessing tiles
      
      * Store tile data instead of (u32, u32)` in objects
      
      * Remove unneeded functions from `ResourceCache`
      
      * Address PR comments
      
      * Misc improvements in `layers::tile`
      
      * Improve example
      
      * Convert `LayerTile` properties to fields
      
      Co-authored-by: default avatarThorbjørn Lindeijer <bjorn@lindeijer.nl>
      df98e9f3
    • Alejandro Perea's avatar
      Add layer tint color; Fix `Color` parsing issues (#150) · ce73c547
      Alejandro Perea authored
      * Fix #148
      
      * Close #85
      
      * Close #149
      
      * Fix just one small issue
      
      * Update changelog
      ce73c547
  12. Jan 26, 2022
    • perlindgren's avatar
      Add parallax support (#101) · 75e0869c
      perlindgren authored
      75e0869c
    • Alejandro Perea's avatar
      Contain all layer types in an enum (#131) · 968073b0
      Alejandro Perea authored
      * 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
      968073b0
    • Thorbjørn Lindeijer's avatar
      Expose types at the top level (#132) · e3d0a5c3
      Thorbjørn Lindeijer authored
      * Expose types at the top level
      
      While the modules are great for organizing the code internally, it is more
      convenient for users of the create when the types are available at the top
      level. This avoids the verbosity like "map::Map".
      
      * Changelog updated
      
      Removed the lines stating where which class has been moved, since all these
      classes are not available at the top level again.
      
      Also removed some things which I didn't think we actually noteworthy for people
      reading up on what had changed.
      
      * Restored some changelog items
      
      Removal of these items unrelated to how the data types are exposed.
      e3d0a5c3
  13. Jan 24, 2022
  14. Dec 29, 2021
  15. Dec 28, 2021
  16. Dec 25, 2021
  17. Nov 07, 2021
  18. Oct 12, 2021
    • alexdevteam's avatar
      Refactor · 1773f1af
      alexdevteam authored
      Move parse functions to its respective types, rename `Colour` for consistency with PropertyValue::ColorValue, add documentation to map members, add Map::source, misc improvements
      1773f1af
  19. Oct 11, 2021
  20. May 02, 2021
    • Matt Hall's avatar
      Handle csv data without newlines · 01f38e3f
      Matt Hall authored
      Closes #99. ldtk seems to output tiled files with no newlines in the csv
      data. Tiled itself does always seem to put the newlines in however, it
      can open the ldtk files so we should too.
      01f38e3f
  21. Jun 20, 2020
  22. Apr 26, 2020
  23. Nov 25, 2019
  24. Oct 14, 2019
  25. Jun 02, 2019
  26. Dec 24, 2017
    • TatriX's avatar
      Parse imagelayer · 4b3ca3ff
      TatriX authored
      Also add test for parsed image layers.
      The test can be also used as an example off how one can get data from
      the parsed map.
      4b3ca3ff
  27. Jun 14, 2017
  28. Jun 10, 2017
  29. Jun 09, 2017
  30. Apr 03, 2015
  31. Mar 23, 2015
  32. Mar 15, 2015
  33. Feb 26, 2015
Loading