generated from GarandPLG/rust-flake-template
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user