diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 15:20:23 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 15:20:23 +0300 |
| commit | cc6bbdfa4aebf844ec7be2e8eb01b7fd1c69d24b (patch) | |
| tree | 4b69fecd2c3172724ad62cd2e75d1bb456ca0c65 /apps/fparkan-game/src/robot_designer.rs | |
| parent | 04e58559f76c89a284dfab820efed25a97db2461 (diff) | |
| download | fparkan-cc6bbdfa4aebf844ec7be2e8eb01b7fd1c69d24b.tar.xz fparkan-cc6bbdfa4aebf844ec7be2e8eb01b7fd1c69d24b.zip | |
feat(ui): show strategic factories and order a warbot
Diffstat (limited to 'apps/fparkan-game/src/robot_designer.rs')
| -rw-r--r-- | apps/fparkan-game/src/robot_designer.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/robot_designer.rs b/apps/fparkan-game/src/robot_designer.rs index 2c97ef35..8fe71df7 100644 --- a/apps/fparkan-game/src/robot_designer.rs +++ b/apps/fparkan-game/src/robot_designer.rs @@ -26,6 +26,19 @@ pub(super) struct RobotDesignerPanel { } impl RobotDesignerPanel { + pub(super) fn draw_factory_model( + &self, + renderer: &mut VulkanSmokeRenderer, + active: (usize, u32), + viewport: [f32; 2], + ) -> Result<(), String> { + self.models.draw_in( + renderer, + Some(active), + viewport, + fparkan_assets::strategic_factory::MODEL_RECT, + ) + } pub(super) fn load( root: &Path, preview: &mut StaticPreviewScene, |
