Rename GameSettingsState to SettingsOptions

This commit is contained in:
2026-03-16 10:45:14 +01:00
parent aacdacadd5
commit 1d8d1eed46
+3 -3
View File
@@ -40,7 +40,7 @@ pub struct SkillsConfigState {
} }
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq)]
pub struct GameSettingsState { pub struct SettingsOptions {
pub username: String, pub username: String,
pub game_mode: GameMode, pub game_mode: GameMode,
pub map_width: u8, pub map_width: u8,
@@ -57,7 +57,7 @@ pub struct GameSettingsState {
pub struct SettingsState { pub struct SettingsState {
pub id: usize, pub id: usize,
pub name: &'static str, pub name: &'static str,
pub game_settings: GameSettingsState, pub options: SettingsOptions,
pub selected_setting: usize, pub selected_setting: usize,
pub show_popup: bool, pub show_popup: bool,
pub selected_setting_new_value: String, pub selected_setting_new_value: String,
@@ -91,7 +91,7 @@ impl GameStates {
selected_setting: 0, selected_setting: 0,
show_popup: false, show_popup: false,
selected_setting_new_value: String::new(), selected_setting_new_value: String::new(),
game_settings: GameSettingsState { options: SettingsOptions {
username: args.username, username: args.username,
game_mode: args.game_mode, game_mode: args.game_mode,
map_width: args.map_width, map_width: args.map_width,