mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
must be tilecount because that's the name of the property in tiled
This commit is contained in:
parent
1aef441f1f
commit
4ece844ecf
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue