Refactor Units enum location and chain CellWidget setters

Move Units enum from the units module into the skirmish state module,
add a dedicated Players enum, and remove the now‑unused unit module.
Update all imports accordingly.
Adjust CellWidget's set_zoom_level and set_structure to return &mut
Self,
enabling method chaining.
This commit is contained in:
2026-04-16 22:02:15 +02:00
parent 6dc5f8605c
commit e6d87dd064
6 changed files with 18 additions and 21 deletions
+3 -2
View File
@@ -2,9 +2,10 @@ use crate::app::{
buildings::BaseBuilding,
helpers::{CellSizes, cell_size_helper, cells_area_helper},
states::{
CellStructure, FocusedCell, Offset, Players, ZoomLevel, skirmish_states::MoveFocusedCell,
CellStructure, FocusedCell, Offset, Players, Units, ZoomLevel,
skirmish_states::MoveFocusedCell,
},
units::{MinerUnit, Units},
units::MinerUnit,
widgets::CellWidget,
};
use ratatui::layout::Rect;