M2RawData

Struct M2RawData 

Source
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§

Source§

impl Clone for M2RawData

Source§

fn clone(&self) -> M2RawData

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 M2RawData

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for M2RawData

Source§

fn default() -> M2RawData

Returns the “default value” for a type. 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, 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
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.