pub struct Wad {
pub header: WadHeader,
pub entries: Vec<WadEntry>,
}Expand description
The world archive.
These archives contain only Lev and Tng files. Usually there’s only one occurence at Data/Levels/FinalAlbion.wad.
See WadReader to read the archive. You read the archive with WadHeader to find the entries, and each WadEntry to find the file contents.
§Format Description
| Section | Description |
|---|---|
| Header | The WadHeader. |
| Blob | The file contents in contiguous chunks. |
| Entries | The list of WadEntry with metdata and content locations. |
See those structs for more details.
Fields§
§header: WadHeader§entries: Vec<WadEntry>Implementations§
Source§impl Wad
impl Wad
pub fn decode_header(input: &[u8]) -> IResult<&[u8], WadHeader, Error>
pub fn decode_entry(input: &[u8]) -> IResult<&[u8], WadEntry, Error>
pub fn decode_timestamp(input: &[u8]) -> IResult<&[u8], NaiveDateTime, Error>
pub fn decode_short_timestamp( input: &[u8], ) -> IResult<&[u8], NaiveDateTime, Error>
Trait Implementations§
impl StructuralPartialEq for Wad
Auto Trait Implementations§
impl Freeze for Wad
impl RefUnwindSafe for Wad
impl Send for Wad
impl Sync for Wad
impl Unpin for Wad
impl UnwindSafe for Wad
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