WmoRoot

Struct WmoRoot 

Source
pub struct WmoRoot {
Show 37 fields pub version: u32, pub n_materials: u32, pub n_groups: u32, pub n_portals: u32, pub n_lights: u32, pub n_doodad_names: u32, pub n_doodad_defs: u32, pub n_doodad_sets: u32, pub ambient_color: [u8; 4], pub wmo_id: u32, pub bounding_box_min: [f32; 3], pub bounding_box_max: [f32; 3], pub flags: u16, pub num_lod: u16, pub textures: Vec<String>, pub texture_offset_index_map: HashMap<u32, u32>, pub materials: Vec<MomtEntry>, pub group_names: Vec<String>, pub group_info: Vec<MogiEntry>, pub skybox: Option<String>, pub portal_vertices: Vec<MopvEntry>, pub portals: Vec<MoptEntry>, pub portal_refs: Vec<MoprEntry>, pub visible_vertices: Vec<MovvEntry>, pub visible_blocks: Vec<MovbEntry>, pub lights: Vec<MoltEntry>, pub doodad_sets: Vec<ModsEntry>, pub doodad_names: Vec<String>, pub doodad_defs: Vec<ModdEntry>, pub fogs: Vec<MfogEntry>, pub convex_volume_planes: Vec<McvpEntry>, pub uv_transforms: Vec<MouvEntry>, pub portal_extras: Vec<MopeEntry>, pub light_extensions: Vec<MolvEntry>, pub doodad_ids: Vec<ModiEntry>, pub new_materials: Vec<Mom3Entry>, pub group_file_ids: Vec<GfidEntry>,
}
Expand description

WMO Root file structure with extended chunk support

Fields§

§version: u32

Version (always 17 for supported versions)

§n_materials: u32

Number of materials (from MOHD)

§n_groups: u32

Number of groups (from MOHD)

§n_portals: u32

Number of portals (from MOHD)

§n_lights: u32

Number of lights (from MOHD)

§n_doodad_names: u32

Number of doodad names (from MOHD)

§n_doodad_defs: u32

Number of doodad definitions (from MOHD)

§n_doodad_sets: u32

Number of doodad sets (from MOHD)

§ambient_color: [u8; 4]

Ambient color as BGRA (from MOHD) - base/ambient lighting color

§wmo_id: u32

WMO ID (foreign key to WMOAreaTable.dbc)

§bounding_box_min: [f32; 3]

Bounding box minimum corner

§bounding_box_max: [f32; 3]

Bounding box maximum corner

§flags: u16

WMO flags

§num_lod: u16

Number of LOD levels

§textures: Vec<String>

Texture filenames (MOTX)

§texture_offset_index_map: HashMap<u32, u32>§materials: Vec<MomtEntry>

Materials (MOMT)

§group_names: Vec<String>

Group names (MOGN)

§group_info: Vec<MogiEntry>

Group information (MOGI)

§skybox: Option<String>

Skybox name (MOSB)

§portal_vertices: Vec<MopvEntry>

Portal vertices (MOPV)

§portals: Vec<MoptEntry>

Portal information (MOPT)

§portal_refs: Vec<MoprEntry>

Portal references (MOPR)

§visible_vertices: Vec<MovvEntry>

Visible block vertices (MOVV)

§visible_blocks: Vec<MovbEntry>

Visible block list (MOVB)

§lights: Vec<MoltEntry>

Lights (MOLT)

§doodad_sets: Vec<ModsEntry>

Doodad sets (MODS)

§doodad_names: Vec<String>

Doodad names (MODN)

§doodad_defs: Vec<ModdEntry>

Doodad definitions (MODD)

§fogs: Vec<MfogEntry>

Fog definitions (MFOG)

§convex_volume_planes: Vec<McvpEntry>

Convex volume planes (MCVP - Cataclysm+)

§uv_transforms: Vec<MouvEntry>

UV transformations (MOUV - Legion+)

§portal_extras: Vec<MopeEntry>

Portal extra information (MOPE - WarWithin+)

§light_extensions: Vec<MolvEntry>

Light extensions (MOLV - Shadowlands+)

§doodad_ids: Vec<ModiEntry>

Doodad file IDs (MODI - Battle for Azeroth+)

§new_materials: Vec<Mom3Entry>

New materials (MOM3 - WarWithin+)

§group_file_ids: Vec<GfidEntry>

Group file IDs (GFID - modern WoW versions)

Trait Implementations§

Source§

impl Clone for WmoRoot

Source§

fn clone(&self) -> WmoRoot

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WmoRoot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more