must be tilecount because that's the name of the property in tiled

This commit is contained in:
Gwilym Kuiper 2022-11-17 21:34:41 +00:00
parent 1aef441f1f
commit 4ece844ecf

View file

@ -49,7 +49,7 @@ mod tiled_export {
})
.collect();
let tile_info = (0..tilemap.tile_count)
let tile_info = (0..tilemap.tilecount)
.map(|id| *tile_data.get(&id).unwrap_or(&0))
.map(|tile_type| tile_type.to_string())
.collect::<Vec<String>>()
@ -222,7 +222,7 @@ mod tiled_export {
#[derive(Deserialize)]
struct TiledTilemap {
tiles: Vec<TiledTile>,
tile_count: i32,
tilecount: i32,
}
#[derive(Deserialize)]