From e3049a126ad07160c8b6e7b23248d02a007d74a1 Mon Sep 17 00:00:00 2001 From: CoCo_Sol Date: Tue, 5 Mar 2024 17:33:30 +0000 Subject: [PATCH] Update crates/border-wars/src/map/renderer.rs --- crates/border-wars/src/map/renderer.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/border-wars/src/map/renderer.rs b/crates/border-wars/src/map/renderer.rs index 3894de2..0c6968e 100644 --- a/crates/border-wars/src/map/renderer.rs +++ b/crates/border-wars/src/map/renderer.rs @@ -26,7 +26,7 @@ struct TilesGap(Vec2); #[derive(Resource, Clone, Copy)] struct TilesSize(Vec2); -impl Tile { +impl Tile { /// Returns the handle of the image of the tile. fn get_texture(&self, asset_server: &AssetServer) -> Handle { match self { @@ -37,6 +37,9 @@ impl Tile { } /// Returns the size of the image of the tile. + /// + /// TODO: we are currently using temporary images that will modify + /// this function in the future. const fn get_image_size(&self) -> Vec2 { match self { Self::Grass => Vec2 {