pub struct WmoGroup {Show 40 fields
pub version: u32,
pub group_index: u32,
pub group_name_index: u32,
pub descriptive_name_index: u32,
pub flags: u32,
pub bounding_box: Vec<f32>,
pub portal_start: u16,
pub portal_count: u16,
pub trans_batch_count: u16,
pub int_batch_count: u16,
pub ext_batch_count: u16,
pub batch_type_d: u16,
pub fog_ids: Vec<u8>,
pub group_liquid: u32,
pub area_table_id: u32,
pub flags2: u32,
pub parent_split_group: i16,
pub next_split_child: i16,
pub n_triangles: u32,
pub n_vertices: u32,
pub material_info: Vec<MopyEntry>,
pub vertex_indices: Vec<u16>,
pub vertex_positions: Vec<MovtEntry>,
pub vertex_normals: Vec<MonrEntry>,
pub texture_coords: Vec<MotvEntry>,
pub render_batches: Vec<MobaEntry>,
pub vertex_colors: Vec<MocvEntry>,
pub light_refs: Vec<u16>,
pub doodad_refs: Vec<u16>,
pub bsp_nodes: Vec<MobnEntry>,
pub bsp_face_indices: Vec<u16>,
pub liquid_header: Option<MliqHeader>,
pub query_face_start: Option<u32>,
pub extended_materials: Vec<Mpy2Entry>,
pub extended_vertex_indices: Vec<u32>,
pub query_faces: Vec<u32>,
pub triangle_strip_indices: Vec<u16>,
pub additional_render_batches: Vec<MorbEntry>,
pub tangent_arrays: Vec<MotaEntry>,
pub shadow_batches: Vec<MobsEntry>,
}Expand description
WMO Group file structure with extended chunk support
Fields§
§version: u32Version (always 17 for supported versions)
group_index: u32Group index (calculated from MOGN)
group_name_index: u32Group name index (offset into MOGN)
descriptive_name_index: u32Descriptive group name index (offset into MOGN)
flags: u32Group flags
bounding_box: Vec<f32>Bounding box [min_x, min_y, min_z, max_x, max_y, max_z]
portal_start: u16Portal information
portal_count: u16§trans_batch_count: u16Batch counts (trans, int, ext)
int_batch_count: u16§ext_batch_count: u16§batch_type_d: u16Unknown batch type (padding or batch_type_d)
fog_ids: Vec<u8>Fog indices (up to 4)
group_liquid: u32Liquid group ID
area_table_id: u32WMOAreaTable ID
flags2: u32Additional flags (Cataclysm+)
parent_split_group: i16Parent or first child split group index
next_split_child: i16Next split child group index
n_triangles: u32Number of triangles in this group (calculated)
n_vertices: u32Number of vertices in this group (calculated)
material_info: Vec<MopyEntry>Material info per triangle (MOPY)
vertex_indices: Vec<u16>Vertex indices (MOVI)
vertex_positions: Vec<MovtEntry>Vertex positions (MOVT)
vertex_normals: Vec<MonrEntry>Vertex normals (MONR)
texture_coords: Vec<MotvEntry>Texture coordinates (MOTV)
render_batches: Vec<MobaEntry>Render batches (MOBA)
vertex_colors: Vec<MocvEntry>Vertex colors (MOCV)
light_refs: Vec<u16>Light references (MOLR)
doodad_refs: Vec<u16>Doodad references (MODR)
bsp_nodes: Vec<MobnEntry>BSP tree nodes (MOBN)
bsp_face_indices: Vec<u16>BSP face indices (MOBR)
liquid_header: Option<MliqHeader>Liquid data (MLIQ)
query_face_start: Option<u32>Query face start (MOGX - Dragonflight+)
extended_materials: Vec<Mpy2Entry>Extended material info (MPY2 - Dragonflight+)
extended_vertex_indices: Vec<u32>Extended vertex indices (MOVX - Shadowlands+)
query_faces: Vec<u32>Query faces (MOQG - Dragonflight+)
triangle_strip_indices: Vec<u16>Triangle strip indices (MORI)
additional_render_batches: Vec<MorbEntry>Additional render batches (MORB)
tangent_arrays: Vec<MotaEntry>Tangent arrays (MOTA)
shadow_batches: Vec<MobsEntry>Shadow batches (MOBS)