pub enum WmoVersion {
Classic,
Tbc,
Wotlk,
Cataclysm,
Mop,
Wod,
Legion,
Bfa,
Shadowlands,
Dragonflight,
WarWithin,
}Expand description
WMO format versions corresponding to different WoW expansions/patches Based on empirical analysis: WMO version remains 17 across all analyzed versions (1.12.1-5.4.8) Features are differentiated by chunk presence rather than version numbers
Variants§
Classic
Classic/Vanilla (1.12.1) - Version 17, core chunks only
Tbc
The Burning Crusade (2.4.3) - Version 17, improved lighting
Wotlk
Wrath of the Lich King (3.3.5a) - Version 17, skybox support
Cataclysm
Cataclysm (4.3.4) - Version 17 + MCVP chunk for transport WMOs
Mop
Mists of Pandaria (5.4.8) - Version 17 + MCVP chunk, group MOCV support
Wod
Warlords of Draenor (6.x) - Theoretical post-MoP versions
Legion
Legion (7.x)
Bfa
Battle for Azeroth (8.x)
Shadowlands
Shadowlands (9.x)
Dragonflight
Dragonflight (10.x)
WarWithin
The War Within (11.x)
Implementations§
Source§impl WmoVersion
impl WmoVersion
Sourcepub fn from_raw(raw: u32) -> Option<Self>
pub fn from_raw(raw: u32) -> Option<Self>
Convert a raw version number to a WmoVersion Based on empirical analysis: version 17 spans Classic through MoP Features are determined by expansion context and chunk presence
Sourcepub fn from_raw_with_expansion(raw: u32, expansion: &str) -> Option<Self>
pub fn from_raw_with_expansion(raw: u32, expansion: &str) -> Option<Self>
Convert a raw version number to WmoVersion with expansion context Use this when you know the WoW expansion to get accurate feature detection
Sourcepub fn to_raw(self) -> u32
pub fn to_raw(self) -> u32
Get the raw version number used in WMO files Returns the actual version number found in WMO headers
Sourcepub fn expansion_name(self) -> &'static str
pub fn expansion_name(self) -> &'static str
Get the expansion name as a string
Sourcepub fn min_supported() -> Self
pub fn min_supported() -> Self
Get the minimum supported version
Sourcepub fn max_supported() -> Self
pub fn max_supported() -> Self
Get the maximum supported version
Sourcepub fn supports_feature(self, feature: WmoFeature) -> bool
pub fn supports_feature(self, feature: WmoFeature) -> bool
Check if this version supports a particular feature
Sourcepub fn from_expansion_name(s: &str) -> Option<Self>
pub fn from_expansion_name(s: &str) -> Option<Self>
Parse version from expansion short names Supports short names like “WotLK”, “TBC”, “Classic”, etc.
Trait Implementations§
Source§impl Clone for WmoVersion
impl Clone for WmoVersion
Source§fn clone(&self) -> WmoVersion
fn clone(&self) -> WmoVersion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more