generated from GarandPLG/rust-flake-template
9300eef906
- Create `GameStates` from a `&Cli` and initialize the skirmish board in `App::new`. - Move map dimensions to `SkirmishState` and add a `board_cells` vector populated by `CellWidget`s. - Refactor `SettingsState` to store only user‑specific settings (fields are cloned). - Update `BoardWidget` to hold a reference to the cell vector and use the new dimensions. - Adjust CLI defaults: map width to 50 and map height to 25.
14 lines
338 B
Rust
14 lines
338 B
Rust
use crate::app::states::{GameMode, PerkDecks};
|
|
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
pub struct SettingsState {
|
|
pub username: String,
|
|
pub game_mode: GameMode,
|
|
pub perk_deck: PerkDecks,
|
|
pub starting_wood: u16,
|
|
pub starting_iron: u16,
|
|
pub supply_limit: u8,
|
|
pub xp_modifier: f32,
|
|
pub skill_points_limit: u16,
|
|
}
|