pub struct PlayerSettings {
pub colors: ColorSettings<Override<Color>>,
pub timing: TimingSettings<Override<f32>>,
pub objects: ObjectSettings<Override<Option<Box<str>>>, Override<[f32; 2]>, Override<f32>>,
pub layers: LayerSettings<Override<Option<usize>>, Override<f32>, Override<Option<usize>>>,
pub layout: LayoutSettings<Override<f32>>,
pub names: Names,
pub custom_colors: HashMap<Box<str>, Override<Color>>,
pub custom_floats: HashMap<Box<str>, Override<f32>>,
}Fields§
§colors: ColorSettings<Override<Color>>§timing: TimingSettings<Override<f32>>§objects: ObjectSettings<Override<Option<Box<str>>>, Override<[f32; 2]>, Override<f32>>§layers: LayerSettings<Override<Option<usize>>, Override<f32>, Override<Option<usize>>>§layout: LayoutSettings<Override<f32>>§names: Names§custom_colors: HashMap<Box<str>, Override<Color>>§custom_floats: HashMap<Box<str>, Override<f32>>Implementations§
Source§impl PlayerSettings
impl PlayerSettings
pub fn common() -> Self
pub fn apply_setting( &mut self, context: &mut SettingsContext, key: &str, value: &str, )
pub fn extract_settings( &mut self, context: &mut SettingsContext, config_map: &mut IndexMap<Box<str>, Box<str>>, )
pub fn reset(&mut self)
pub fn set_aspect(&mut self, setter: Setter)
pub fn reset_aspects(&mut self)
Source§impl PlayerSettings
impl PlayerSettings
pub fn revert(&mut self, parameter: &Parameter)
pub fn change(&mut self, change: &Change)
pub fn set_character_default(&mut self, change: Setter)
pub fn custom_color(&self, name: &str, character: &str) -> Option<Color>
pub fn custom_float(&self, name: &str, character: &str) -> Option<f32>
Auto Trait Implementations§
impl Freeze for PlayerSettings
impl RefUnwindSafe for PlayerSettings
impl Send for PlayerSettings
impl Sync for PlayerSettings
impl Unpin for PlayerSettings
impl UnsafeUnpin for PlayerSettings
impl UnwindSafe for PlayerSettings
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