[][src]Struct genie_rec::actions::Meta

pub struct Meta {
    pub log_version: Option<u32>,
    pub checksum_interval: u32,
    pub is_multiplayer: bool,
    pub use_sequence_numbers: bool,
    pub local_player_id: PlayerID,
    pub header_position: u32,
    pub num_chapters: Option<u32>,
}

Action at the start of the game, contains settings affecting the rec format.

Fields

log_version: Option<u32>

The version of the action log format. 3 for AoC 1.0, 4 for AoC 1.0c and UserPatch.

checksum_interval: u32is_multiplayer: booluse_sequence_numbers: boollocal_player_id: PlayerIDheader_position: u32num_chapters: Option<u32>

The amount of saved chapters in this rec / save game. This is only set if the game version that generated the file supports saved chapters (i.e. The Conquerors and up).

Implementations

impl Meta[src]

pub fn read_from_mgl(input: impl Read) -> Result<Self>[src]

Read recorded game body metadata in the mgl format used by Age of Empires 2: The Age Of Kings.

pub fn read_from_mgx(input: impl Read) -> Result<Self>[src]

Read recorded game body metadata in the mgx format used by Age of Empires 2: The Conquerors and all subsequent versions.

Trait Implementations

impl Clone for Meta[src]

impl Debug for Meta[src]

impl Default for Meta[src]

Auto Trait Implementations

impl RefUnwindSafe for Meta

impl Send for Meta

impl Sync for Meta

impl Unpin for Meta

impl UnwindSafe for Meta

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.