pub struct Header {
pub version: u32,
pub game_version: u32,
pub user_version: u32,
pub priority: u32,
pub skip: u32,
pub icon: (u32, u32, Vec<u8>),
pub preview: Vec<u8>,
pub can_override: bool,
pub crc: u32,
pub name: String,
pub author: String,
pub description: String,
}Expand description
The header of a package: versions, priority, and a mod’s name, icon and description.
Fields§
§version: u32The package format version.
game_version: u32The game version the package was made with (0x010007ff is 1.0.7; read with
Configuration::GetVersionString), the author’s version number (a mod’s).
user_version: u32The author’s version number (a mod’s).
priority: u32The priority: the entry of the package with the higher priority wins (10,000 for mods).
skip: u32Modification::RefreshList leaves out a mod whose value is not 0 (0 in every package seen;
its meaning is not traced).
icon: (u32, u32, Vec<u8>)The icon (48×48 for mods), 0xAARRGGBB texels.
preview: Vec<u8>The preview image’s file (jpg or png), from version 2.
can_override: boolWhether a mod may replace this package’s entries.
crc: u32A checksum of the package.
name: StringA mod’s name.
A mod’s author.
description: StringA mod’s description.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more