Add lifetime parameter and MarkedCells struct

Refactor App, GameStates, SkirmishState and BoardState to carry a
generic
lifetime `'a`. Introduce a new `MarkedCells` type that holds marking
state
and selected unit, replacing the previous `marking_cells` flag and raw
deque. Update related methods, keybindings, view implementations and
module exports to use the new structures.
This commit is contained in:
2026-05-06 21:39:53 +02:00
parent b66c1d8e25
commit cd1822d05e
11 changed files with 78 additions and 38 deletions
+2
View File
@@ -1,6 +1,7 @@
mod board;
mod focused_cell;
mod game_mode;
mod marked_cells;
mod offset;
mod players;
pub mod structures;
@@ -11,6 +12,7 @@ pub mod zoom_level;
pub use board::BoardState;
pub use focused_cell::{FocusedCell, MoveFocusedCell};
pub use game_mode::GameMode;
pub use marked_cells::MarkedCells;
pub use offset::Offset;
pub use players::Players;
pub use zoom_level::{CellSizes, ZoomLevel};