[−][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.
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.
Methods
impl SCXHeader
[src]
pub fn from<R: Read>(
input: &mut R,
format_version: SCXVersion
) -> Result<SCXHeader>
[src]
input: &mut R,
format_version: SCXVersion
) -> Result<SCXHeader>
Parse an SCX header from a byte stream.
pub fn write_to<W: Write>(
&self,
output: &mut W,
format_version: SCXVersion,
version: u32
) -> Result<()>
[src]
&self,
output: &mut W,
format_version: SCXVersion,
version: u32
) -> Result<()>
Serialize an SCX header to a byte stream.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,