pub struct M2Animation {Show 14 fields
pub animation_id: u16,
pub sub_animation_id: u16,
pub start_timestamp: u32,
pub end_timestamp: Option<u32>,
pub movement_speed: f32,
pub flags: u32,
pub frequency: i16,
pub padding: u16,
pub replay: Option<M2Range>,
pub minimum_extent: Option<[f32; 3]>,
pub maximum_extent: Option<[f32; 3]>,
pub extent_radius: Option<f32>,
pub next_animation: Option<i16>,
pub aliasing: Option<u16>,
}Expand description
Animation data for a model
Fields§
§animation_id: u16Animation ID
sub_animation_id: u16Sub-animation ID (variation index)
start_timestamp: u32Start timestamp (Classic) or Duration (BC+) in milliseconds
end_timestamp: Option<u32>End timestamp (Classic only)
movement_speed: f32Movement speed
flags: u32Flags
frequency: i16Frequency/Probability (renamed in later versions)
padding: u16Padding/Realignment
replay: Option<M2Range>Replay range (Classic only)
minimum_extent: Option<[f32; 3]>Minimum extent (BC+ only)
maximum_extent: Option<[f32; 3]>Maximum extent (BC+ only)
extent_radius: Option<f32>Extent radius (BC+ only)
next_animation: Option<i16>Next animation ID (BC+ only)
aliasing: Option<u16>Aliasing (BC+ only)
Implementations§
Trait Implementations§
Source§impl Clone for M2Animation
impl Clone for M2Animation
Source§fn clone(&self) -> M2Animation
fn clone(&self) -> M2Animation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for M2Animation
impl RefUnwindSafe for M2Animation
impl Send for M2Animation
impl Sync for M2Animation
impl Unpin for M2Animation
impl UnwindSafe for M2Animation
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
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>
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 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>
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