pub struct Mod {Show 14 fields
pub file: String,
pub name: String,
pub author: String,
pub description: String,
pub game_version: u32,
pub user_version: u32,
pub crc: u32,
pub icon: (u32, u32, Vec<u8>),
pub files: BTreeSet<String>,
pub names: Vec<String>,
pub enabled: bool,
pub index: i32,
pub conflicts: Vec<String>,
pub bytes: Rc<Vec<u8>>,
}Expand description
One mod (Modification::Mod, 0x80 bytes).
Fields§
§file: StringThe package’s file name without .pkm (GetPathFilename).
name: StringThe name the mod’s author gave it.
The mod’s author.
description: StringThe mod’s description.
game_version: u32The game version it was made with and the author’s version.
user_version: u32The author’s own version number.
crc: u32The package’s checksum, which saves record.
icon: (u32, u32, Vec<u8>)The 48×48 icon (0xAARRGGBB).
files: BTreeSet<String>Its files, normalised, and as the package names them, in that order.
names: Vec<String>Its files as the package names them, sorted, for the details.
enabled: boolWhether it is enabled.
index: i32Its place in the list.
conflicts: Vec<String>The other mods sharing a file, by file name.
bytes: Rc<Vec<u8>>The package’s bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for Mod
impl !Sync for Mod
impl Freeze for Mod
impl RefUnwindSafe for Mod
impl Unpin for Mod
impl UnsafeUnpin for Mod
impl UnwindSafe for Mod
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