Struct tw_pack_lib::PackFile

source ·
pub struct PackFile { /* private fields */ }
Expand description

This struct represents a parsed PackFile.

All his members are private. To obtain any data from it you have to use the provided getters. If you want to make more complex use of the PackFile, like editing PackedFiles, it’s recommended that you use this only to populate your own PackFile struct with the info/data you need.

Implementations

This function returns the PFHVersion of the provided PackFile.

This function returns the PFHFileType of the provided PackFile.

This function returns the PFHFlags of the provided PackFile.

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.

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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.