From 4ece844ecf5eef363114390cb8bcc2003bceb283 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 17 Nov 2022 21:34:41 +0000 Subject: [PATCH] must be tilecount because that's the name of the property in tiled --- examples/the-hat-chooses-the-wizard/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/the-hat-chooses-the-wizard/build.rs b/examples/the-hat-chooses-the-wizard/build.rs index 5e5b04d3..bf20316e 100644 --- a/examples/the-hat-chooses-the-wizard/build.rs +++ b/examples/the-hat-chooses-the-wizard/build.rs @@ -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::>() @@ -222,7 +222,7 @@ mod tiled_export { #[derive(Deserialize)] struct TiledTilemap { tiles: Vec, - tile_count: i32, + tilecount: i32, } #[derive(Deserialize)]