mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21: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();
|
.collect();
|
||||||
|
|
||||||
let tile_info = (0..tilemap.tile_count)
|
let tile_info = (0..tilemap.tilecount)
|
||||||
.map(|id| *tile_data.get(&id).unwrap_or(&0))
|
.map(|id| *tile_data.get(&id).unwrap_or(&0))
|
||||||
.map(|tile_type| tile_type.to_string())
|
.map(|tile_type| tile_type.to_string())
|
||||||
.collect::<Vec<String>>()
|
.collect::<Vec<String>>()
|
||||||
|
@ -222,7 +222,7 @@ mod tiled_export {
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
struct TiledTilemap {
|
struct TiledTilemap {
|
||||||
tiles: Vec<TiledTile>,
|
tiles: Vec<TiledTile>,
|
||||||
tile_count: i32,
|
tilecount: i32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
|
|
Loading…
Reference in a new issue