pub struct M2RawData {Show 37 fields
pub bone_animation_data: Vec<BoneAnimationRaw>,
pub embedded_skins: Vec<EmbeddedSkinRaw>,
pub particle_animation_data: Vec<ParticleAnimationRaw>,
pub ribbon_animation_data: Vec<RibbonAnimationRaw>,
pub texture_animation_data: Vec<TextureAnimationRaw>,
pub color_animation_data: Vec<ColorAnimationRaw>,
pub transparency_animation_data: Vec<TransparencyAnimationRaw>,
pub event_data: Vec<EventRaw>,
pub attachment_animation_data: Vec<AttachmentAnimationRaw>,
pub camera_animation_data: Vec<CameraAnimationRaw>,
pub light_animation_data: Vec<LightAnimationRaw>,
pub transparency: Vec<u8>,
pub texture_animations: Vec<u8>,
pub color_animations: Vec<u8>,
pub color_replacements: Vec<u8>,
pub render_flags: Vec<u8>,
pub bone_lookup_table: Vec<u16>,
pub texture_lookup_table: Vec<u16>,
pub texture_units: Vec<u16>,
pub transparency_lookup_table: Vec<u16>,
pub texture_animation_lookup: Vec<u16>,
pub bounding_triangles: Vec<u8>,
pub bounding_vertices: Vec<u8>,
pub bounding_normals: Vec<u8>,
pub attachments: Vec<u8>,
pub attachment_lookup_table: Vec<u16>,
pub events: Vec<u8>,
pub lights: Vec<u8>,
pub cameras: Vec<u8>,
pub camera_lookup_table: Vec<u16>,
pub ribbon_emitters: Vec<u8>,
pub particle_emitters: Vec<u8>,
pub views_data: Vec<u8>,
pub texture_flipbooks: Option<Vec<u8>>,
pub blend_map_overrides: Option<Vec<u8>>,
pub texture_combiner_combos: Option<Vec<u8>>,
pub texture_transforms: Option<Vec<u8>>,
}Expand description
Raw data for sections that are not fully parsed
Fields§
§bone_animation_data: Vec<BoneAnimationRaw>Raw animation keyframe data for all bone tracks Used to preserve animation data during roundtrip serialization
embedded_skins: Vec<EmbeddedSkinRaw>Raw embedded skin data for pre-WotLK models (version <= 263) Empty for WotLK+ models which use external .skin files
particle_animation_data: Vec<ParticleAnimationRaw>Raw animation keyframe data for all particle emitter tracks Used to preserve particle animation data during roundtrip serialization
ribbon_animation_data: Vec<RibbonAnimationRaw>Raw animation keyframe data for all ribbon emitter tracks Used to preserve ribbon animation data during roundtrip serialization
texture_animation_data: Vec<TextureAnimationRaw>Raw animation keyframe data for all texture animation tracks Used to preserve texture animation data during roundtrip serialization
color_animation_data: Vec<ColorAnimationRaw>Raw animation keyframe data for all color animation tracks Used to preserve color animation data during roundtrip serialization
transparency_animation_data: Vec<TransparencyAnimationRaw>Raw animation keyframe data for all transparency animation tracks Used to preserve transparency animation data during roundtrip serialization
event_data: Vec<EventRaw>Raw event track data for all events Used to preserve event timestamp data during roundtrip serialization
attachment_animation_data: Vec<AttachmentAnimationRaw>Raw animation keyframe data for all attachment tracks Used to preserve attachment animation data during roundtrip serialization
camera_animation_data: Vec<CameraAnimationRaw>Raw animation keyframe data for all camera tracks Used to preserve camera animation data during roundtrip serialization
light_animation_data: Vec<LightAnimationRaw>Raw animation keyframe data for all light tracks Used to preserve light animation data during roundtrip serialization
transparency: Vec<u8>Transparency data (the actual transparency animations, not lookups)
texture_animations: Vec<u8>Texture animations (legacy raw storage, being replaced by texture_animation_data)
color_animations: Vec<u8>Color animations
color_replacements: Vec<u8>Color replacements
render_flags: Vec<u8>Render flags
bone_lookup_table: Vec<u16>Bone lookup table
texture_lookup_table: Vec<u16>Texture lookup table
texture_units: Vec<u16>Texture units
transparency_lookup_table: Vec<u16>Transparency lookup table
texture_animation_lookup: Vec<u16>Texture animation lookup
bounding_triangles: Vec<u8>Bounding triangles
bounding_vertices: Vec<u8>Bounding vertices
bounding_normals: Vec<u8>Bounding normals
attachments: Vec<u8>Attachments
attachment_lookup_table: Vec<u16>Attachment lookup table
events: Vec<u8>Events
lights: Vec<u8>Lights
cameras: Vec<u8>Cameras
camera_lookup_table: Vec<u16>Camera lookup table
ribbon_emitters: Vec<u8>Ribbon emitters (raw, for versions where we don’t parse)
particle_emitters: Vec<u8>Particle emitters (raw, for versions where we don’t parse)
views_data: Vec<u8>Views data (embedded skins for pre-WotLK, raw bytes)
texture_flipbooks: Option<Vec<u8>>Texture flipbooks (BC and earlier)
blend_map_overrides: Option<Vec<u8>>Blend map overrides (BC+ with specific flag)
texture_combiner_combos: Option<Vec<u8>>Texture combiner combos (added in Cataclysm)
texture_transforms: Option<Vec<u8>>Texture transforms (added in Legion)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for M2RawData
impl RefUnwindSafe for M2RawData
impl Send for M2RawData
impl Sync for M2RawData
impl Unpin for M2RawData
impl UnwindSafe for M2RawData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().