mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/data/map.rs')
| -rw-r--r-- | src/data/map.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/data/map.rs b/src/data/map.rs index 7478a66..355aaf3 100644 --- a/src/data/map.rs +++ b/src/data/map.rs @@ -134,20 +134,20 @@ impl<'l> Tile<'l> { 1 } - pub fn floor_image(&self, context: Option<&RenderingContext>) -> ImageHolder { - let mut i = self.floor.image(None, context, Rotation::Up); + pub fn floor_image(&self, context: Option<&RenderingContext>, s: Scale) -> ImageHolder { + let mut i = self.floor.image(None, context, Rotation::Up, s); if let Some(ore) = self.ore { - i.overlay(ore.image(None, context, Rotation::Up).borrow()); + i.overlay(ore.image(None, context, Rotation::Up, s).borrow()); } i } - pub fn build_image(&self, context: Option<&RenderingContext>) -> ImageHolder { + pub fn build_image(&self, context: Option<&RenderingContext>, s: Scale) -> ImageHolder { // building covers floore let Some(b) = &self.build else { unreachable!(); }; - b.image(context) + b.image(context, s) } } @@ -243,9 +243,9 @@ impl<'l> Build<'l> { } } - pub fn image(&self, context: Option<&RenderingContext>) -> ImageHolder { + pub fn image(&self, context: Option<&RenderingContext>, s: Scale) -> ImageHolder { self.block - .image(self.state.as_ref(), context, self.rotation) + .image(self.state.as_ref(), context, self.rotation, s) } pub fn name(&self) -> &str { |