Enum tw_pack_lib::PFHFileType [−][src]
pub enum PFHFileType { Boot, Release, Patch, Mod, Movie, Other(u32), }
This enum represents the Type of a PackFile.
The possible types are, in the order they'll load when the game starts (their numeric value is the number besides them):
Boot
(0): Used in CA PackFiles, not useful for modding.Release
(1): Used in CA PackFiles, not useful for modding.Patch
(2): Used in CA PackFiles, not useful for modding.Mod
(3): Used for mods. PackFiles of this type are only loaded in the game if they are enabled in the Mod Manager/Launcher.Movie
(4): Used in CA PackFiles and for some special mods. UnlikeMod
PackFiles, these ones always get loaded.Other(u32)
: Wildcard for any type that doesn't fit in any of the other categories. The type's value is stored in the Variant.
Variants
Boot
Release
Patch
Mod
Movie
Other(u32)
Methods
impl PFHFileType
[src]
impl PFHFileType
pub fn get_value(&self) -> u32
[src]
pub fn get_value(&self) -> u32
This function returns the PackFile's Type in u32
format. To know what value corresponds with what type, check their definition's comment.
Trait Implementations
impl Debug for PFHFileType
[src]
impl Debug for PFHFileType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for PFHFileType
[src]
impl Clone for PFHFileType
fn clone(&self) -> PFHFileType
[src]
fn clone(&self) -> PFHFileType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for PFHFileType
[src]
impl Copy for PFHFileType
impl PartialEq for PFHFileType
[src]
impl PartialEq for PFHFileType
fn eq(&self, other: &PFHFileType) -> bool
[src]
fn eq(&self, other: &PFHFileType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PFHFileType) -> bool
[src]
fn ne(&self, other: &PFHFileType) -> bool
This method tests for !=
.
impl Eq for PFHFileType
[src]
impl Eq for PFHFileType
Auto Trait Implementations
impl Send for PFHFileType
impl Send for PFHFileType
impl Sync for PFHFileType
impl Sync for PFHFileType