pub struct GameplayConfig {
pub auto_save: bool,
pub auto_save_interval: u32,
pub show_tutorials: bool,
pub animation_speed: f32,
pub ui_scale: f32,
}Expand description
Gameplay configuration settings.
Fields§
§auto_save: boolAuto-save enabled
auto_save_interval: u32Auto-save interval in seconds
show_tutorials: boolShow tutorials and hints
animation_speed: f32Animation speed multiplier
ui_scale: f32UI scaling factor
Trait Implementations§
Source§impl Clone for GameplayConfig
impl Clone for GameplayConfig
Source§fn clone(&self) -> GameplayConfig
fn clone(&self) -> GameplayConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GameplayConfig
impl Debug for GameplayConfig
Source§impl Default for GameplayConfig
impl Default for GameplayConfig
Source§impl<'de> Deserialize<'de> for GameplayConfig
impl<'de> Deserialize<'de> for GameplayConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GameplayConfig
impl RefUnwindSafe for GameplayConfig
impl Send for GameplayConfig
impl Sync for GameplayConfig
impl Unpin for GameplayConfig
impl UnsafeUnpin for GameplayConfig
impl UnwindSafe for GameplayConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more