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,
}
Expand description
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§
Source§impl VersionBundle
impl VersionBundle
Sourcepub fn userpatch_14() -> Self
pub fn userpatch_14() -> Self
A version bundle with the parameters UserPatch 1.4 uses by default.
Sourcepub fn userpatch_15() -> Self
pub fn userpatch_15() -> Self
A version bundle with the parameters UserPatch 1.5 uses by default.
Sourcepub fn hd_edition() -> Self
pub fn hd_edition() -> Self
A version bundle with the parameters HD Edition uses by default.
Sourcepub fn aoe2_de() -> Self
pub fn aoe2_de() -> Self
A version bundle with parameters Age of Empires 2: Definitive Edition uses by default.
This will be updated along with DE2 patches.
Sourcepub fn is_hd_edition(&self) -> bool
pub fn is_hd_edition(&self) -> bool
Returns whether this version is (likely) for an HD Edition scenario.
Sourcepub fn is_age2_de(&self) -> bool
pub fn is_age2_de(&self) -> bool
Returns whether this version is (likely) for an AoE2: Definitive Edition scenario.
Trait Implementations§
Source§impl Clone for VersionBundle
impl Clone for VersionBundle
Source§fn clone(&self) -> VersionBundle
fn clone(&self) -> VersionBundle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more