mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/block/mod.rs')
| -rw-r--r-- | src/block/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/block/mod.rs b/src/block/mod.rs index c7feb9a..c1440c5 100644 --- a/src/block/mod.rs +++ b/src/block/mod.rs @@ -63,6 +63,7 @@ pub trait BlockLogic { state: Option<&State>, context: Option<&RenderingContext>, rot: Rotation, + scale: Scale, ) -> ImageHolder; fn want_context(&self) -> bool { @@ -199,8 +200,11 @@ impl Block { state: Option<&State>, context: Option<&RenderingContext>, rot: Rotation, + scale: Scale, ) -> ImageHolder { - self.logic.as_ref().draw(&self.name, state, context, rot) + self.logic + .as_ref() + .draw(&self.name, state, context, rot, scale) } /// size. |