Struct tw_pack_lib::PackFile [−][src]
pub struct PackFile { /* fields omitted */ }
Methods
impl PackFile
[src]
impl PackFile
pub fn get_version(&self) -> PFHVersion
[src]
pub fn get_version(&self) -> PFHVersion
This function returns the PFHVersion
of the provided PackFile.
pub fn get_file_type(&self) -> PFHFileType
[src]
pub fn get_file_type(&self) -> PFHFileType
This function returns the PFHFileType
of the provided PackFile.
pub fn get_bitmask(&self) -> PFHFlags
[src]
pub fn get_bitmask(&self) -> PFHFlags
This function returns the PFHFlags
of the provided PackFile.
pub fn get_timestamp(&self) -> u32
[src]
pub fn get_timestamp(&self) -> u32
This function returns the Timestamp
stored in the header of the provided PackFile, if any.
Keep in mind this Timestamp
is in u32
format. If you want to actually check it, you have to convert it to something readable.
pub fn get_pack_file_index(&self) -> Vec<String>
[src]
pub fn get_pack_file_index(&self) -> Vec<String>
This function returns the PackFile Index
some PackFiles have after their header.
It's a Vec<String>
with values like test1.pack
. The game seems to force PackFiles in this Index (if it finds them) to be loaded before the current one.
Trait Implementations
impl Display for PackFile
[src]
impl Display for PackFile
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<'a> IntoIterator for &'a PackFile
[src]
impl<'a> IntoIterator for &'a PackFile
type Item = PackedFile
The type of the elements being iterated over.
type IntoIter = PackIndexIterator<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl Clone for PackFile
[src]
impl Clone for PackFile