pub struct AnimSequence {
pub id: u16,
pub sub_id: u16,
pub duration: u32,
pub movement_speed: f32,
pub flags: u32,
pub frequency: u16,
pub replay_min: u32,
pub replay_max: u32,
pub blend_time: u32,
pub variation_next: i16,
pub alias_next: u16,
}Expand description
Animation sequence data (resolved from M2Sequence)
Fields§
§id: u16Animation ID (e.g., 0=Stand, 4=Walk, 5=Run)
sub_id: u16Sub-animation ID for variations
duration: u32Duration in milliseconds
movement_speed: f32Movement speed
flags: u32Flags
frequency: u16Probability weight for variation selection
replay_min: u32Minimum repeat count
replay_max: u32Maximum repeat count
blend_time: u32Blend time for transitions (milliseconds)
variation_next: i16Index of next variation (-1 if none)
alias_next: u16Index of aliased animation
Implementations§
Source§impl AnimSequence
impl AnimSequence
Trait Implementations§
Source§impl Clone for AnimSequence
impl Clone for AnimSequence
Source§fn clone(&self) -> AnimSequence
fn clone(&self) -> AnimSequence
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 AnimSequence
impl RefUnwindSafe for AnimSequence
impl Send for AnimSequence
impl Sync for AnimSequence
impl Unpin for AnimSequence
impl UnwindSafe for AnimSequence
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