generated from GarandPLG/rust-flake-template
Lazy init game states and extract board module
App now stores CLI arguments and an optional GameStates, initializing the states lazily on the first window resize. Skirmish board logic is moved to a new BoardState module with dedicated helpers (cells_area_helper and updated cell size handling). Views and keybindings are updated to use the optional state accessors.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
pub mod board;
|
||||
pub mod focused_cell;
|
||||
pub mod offset;
|
||||
|
||||
pub use board::BoardState;
|
||||
pub use focused_cell::FocusedCell;
|
||||
pub use offset::Offset;
|
||||
|
||||
Reference in New Issue
Block a user