Struct room4doom::config::UserConfig
source · pub struct UserConfig {
pub iwad: String,
pub width: u32,
pub height: u32,
pub fullscreen: bool,
pub hi_res: bool,
pub renderer: RenderType,
pub shader: Option<Shaders>,
pub sfx_vol: i32,
pub mus_vol: i32,
pub gus_mem_size: GusMemSize,
pub input: InputConfig,
}
Fields§
§iwad: String
§width: u32
§height: u32
§fullscreen: bool
§hi_res: bool
§renderer: RenderType
§shader: Option<Shaders>
§sfx_vol: i32
§mus_vol: i32
§gus_mem_size: GusMemSize
§input: InputConfig
Implementations§
source§impl UserConfig
impl UserConfig
fn create_default(file: &mut File) -> Self
pub fn write(&self)
sourcepub fn sync_cli(&mut self, cli: &mut CLIOptions)
pub fn sync_cli(&mut self, cli: &mut CLIOptions)
Sync the CLI options and UserOptions with each other
Trait Implementations§
source§impl Clone for UserConfig
impl Clone for UserConfig
source§fn clone(&self) -> UserConfig
fn clone(&self) -> UserConfig
Returns a copy of the value. Read more
1.0.0 · 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 UserConfig
impl Debug for UserConfig
source§impl Default for UserConfig
impl Default for UserConfig
source§fn default() -> UserConfig
fn default() -> UserConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UserConfigwhere
UserConfig: Default,
impl<'de> Deserialize<'de> for UserConfigwhere
UserConfig: Default,
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 RefUnwindSafe for UserConfig
impl Send for UserConfig
impl Sync for UserConfig
impl Unpin for UserConfig
impl UnwindSafe for UserConfig
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