#[repr(u32)]pub enum WmoVersion {
Classic = 17,
Tbc = 18,
Wotlk = 19,
Cataclysm = 20,
Mop = 21,
Wod = 22,
Legion = 23,
Bfa = 24,
Shadowlands = 25,
Dragonflight = 26,
WarWithin = 27,
}Expand description
WMO format versions corresponding to different WoW expansions/patches
Variants§
Classic = 17
Classic/Vanilla (1.x)
Tbc = 18
The Burning Crusade (2.x)
Wotlk = 19
Wrath of the Lich King (3.x)
Cataclysm = 20
Cataclysm (4.x)
Mop = 21
Mists of Pandaria (5.x)
Wod = 22
Warlords of Draenor (6.x)
Legion = 23
Legion (7.x)
Bfa = 24
Battle for Azeroth (8.x)
Shadowlands = 25
Shadowlands (9.x)
Dragonflight = 26
Dragonflight (10.x)
WarWithin = 27
The War Within (11.x)
Implementations§
Source§impl WmoVersion
impl WmoVersion
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
Trait Implementations§
Source§impl Clone for WmoVersion
impl Clone for WmoVersion
Source§fn clone(&self) -> WmoVersion
fn clone(&self) -> WmoVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WmoVersion
impl Debug for WmoVersion
Source§impl Ord for WmoVersion
impl Ord for WmoVersion
Source§fn cmp(&self, other: &WmoVersion) -> Ordering
fn cmp(&self, other: &WmoVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WmoVersion
impl PartialEq for WmoVersion
Source§impl PartialOrd for WmoVersion
impl PartialOrd for WmoVersion
impl Copy for WmoVersion
impl Eq for WmoVersion
impl StructuralPartialEq for WmoVersion
Auto Trait Implementations§
impl Freeze for WmoVersion
impl RefUnwindSafe for WmoVersion
impl Send for WmoVersion
impl Sync for WmoVersion
impl Unpin for WmoVersion
impl UnwindSafe for WmoVersion
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