ogre 0.1.7

A rusty, dual-wielding Quake and Half-Life texture WAD parser.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// The set of supported WAD formats.
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum WadMagic {
    Wad2,
    Wad3
}

/// Header describing the format, entry count and dictionary location inside a WAD file.
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Header {
    pub magic: WadMagic,
    pub num_entries: u32,
    pub dir_offset: u32,
}