[−][src]Struct rt3conf::Engine
Contains the data for the engine.cfg file.
The fields will be split up into more named fields as they are reverse engineered. A field with a number is an unknown field. The numbering is subject to change.
Implementations
impl Engine
[src]
pub fn new() -> Self
[src]
Creates a new Engine
with safe defaults (i.e. 800 x 600 screen
resolution and hardware texture and lighting off).
pub fn serialize(&self) -> Vec<u8>
[src]
Serializes the Engine
struct to a vector of bytes that can then be
saved to a file.
pub fn set_accelerated_mouse(&mut self, accelerated_mouse: bool)
[src]
pub fn set_font_shadows(&mut self, font_shadows: bool)
[src]
pub fn set_full_screen(&mut self, full_screen: bool)
[src]
pub fn set_disable_hardware_tnl(&mut self, disable_hardware_tnl: bool)
[src]
pub fn set_height(&mut self, height: u32)
[src]
pub fn set_width(&mut self, width: u32)
[src]
Trait Implementations
impl Default for Engine
[src]
pub fn default() -> Self
[src]
Creates a new Engine
with safe defaults (i.e. 800 x 600 screen
resolution and hardware texture and lighting off).
impl<'de> Deserialize<'de> for Engine
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Engine
[src]
Auto Trait Implementations
impl RefUnwindSafe for Engine
[src]
impl Send for Engine
[src]
impl Sync for Engine
[src]
impl Unpin for Engine
[src]
impl UnwindSafe for Engine
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,