[−][src]Struct genie_scx::SCXHeader
Fields
version: u32
Version of the header.
Versions 2 and up include a save timestamp. Versions 3 and up contain HD Edition DLC information.
timestamp: u32
Unix timestamp when this scenario was created, in seconds.
description: Option<String>
Description text about the scenario.
Name of the person who created this scenario. Only available in DE2.
any_sp_victory: bool
Whether the scenario has any victory conditions for singleplayer.
active_player_count: u32
How many players are supported by this scenario.
dlc_options: Option<DLCOptions>
HD Edition DLC information.
Implementations
impl SCXHeader
[src]
pub fn read_from(
input: impl Read,
format_version: SCXVersion
) -> Result<SCXHeader>
[src]
input: impl Read,
format_version: SCXVersion
) -> Result<SCXHeader>
Parse an SCX header from a byte stream.
pub fn write_to(
&self,
output: impl Write,
format_version: SCXVersion,
version: u32
) -> Result<()>
[src]
&self,
output: impl Write,
format_version: SCXVersion,
version: u32
) -> Result<()>
Serialize an SCX header to a byte stream.
pub fn touch(&mut self) -> Result<(), SystemTimeError>
[src]
Update the timestamp.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SCXHeader
impl Send for SCXHeader
impl Sync for SCXHeader
impl Unpin for SCXHeader
impl UnwindSafe for SCXHeader
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,