[][src]Struct genie_scx::VersionBundle

pub struct VersionBundle {
    pub format: SCXVersion,
    pub header: u32,
    pub dlc_options: Option<i32>,
    pub data: f32,
    pub picture: u32,
    pub victory: f32,
    pub triggers: Option<f64>,
    pub map: u32,
}

All the versions an SCX file uses in a single struct.

Fields

format: SCXVersion

The version of the 'container' file format.

header: u32

The version of the header.

dlc_options: Option<i32>

The version of the HD Edition DLC Options, only if header >= 3.

data: f32

The compressed data version.

picture: u32

The version of embedded bitmaps.

victory: f32

The version of the victory conditions data.

triggers: Option<f64>

The version of the trigger system.

map: u32

The version of the map data.

Implementations

impl VersionBundle[src]

pub fn aoe() -> Self[src]

A version bundle with the parameters AoE1 uses by default.

pub fn ror() -> Self[src]

A version bundle with the parameters AoE1: Rise of Rome uses by default.

pub fn aok() -> Self[src]

A version bundle with the parameters AoK uses by default.

pub fn aoc() -> Self[src]

A version bundle with the parameters AoC uses by default

pub fn userpatch_14() -> Self[src]

A version bundle with the parameters UserPatch 1.4 uses by default.

pub fn userpatch_15() -> Self[src]

A version bundle with the parameters UserPatch 1.5 uses by default.

pub fn hd_edition() -> Self[src]

A version bundle with the parameters HD Edition uses by default.

pub fn aoe2_de() -> Self[src]

A version bundle with parameters Age of Empires 2: Definitive Edition uses by default.

This will be updated along with DE2 patches.

pub fn is_aok(&self) -> bool[src]

Returns whether this version is (likely) for an AoK scenario.

pub fn is_aoc(&self) -> bool[src]

Returns whether this version is (likely) for an AoC scenario.

pub fn is_hd_edition(&self) -> bool[src]

Returns whether this version is (likely) for an HD Edition scenario.

pub fn is_age2_de(&self) -> bool[src]

Returns whether this version is (likely) for an AoE2: Definitive Edition scenario.

Trait Implementations

impl Clone for VersionBundle[src]

impl Debug for VersionBundle[src]

impl PartialEq<VersionBundle> for VersionBundle[src]

impl StructuralPartialEq for VersionBundle[src]

Auto Trait Implementations

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.