pub struct Sequence { /* private fields */ }Expand description
Animation sequence definition
Sequences define named animation clips with specific frame ranges. Examples: “Stand”, “Walk”, “Attack”, “Death”
Implementations§
Source§impl Sequence
impl Sequence
pub fn set_name(&mut self, value: &str)
Sourcepub fn interval_start(&self) -> u32
pub fn interval_start(&self) -> u32
Starting frame number
pub fn set_interval_start(&mut self, value: u32)
Sourcepub fn interval_end(&self) -> u32
pub fn interval_end(&self) -> u32
Ending frame number (exclusive)
pub fn set_interval_end(&mut self, value: u32)
Sourcepub fn move_speed(&self) -> f32
pub fn move_speed(&self) -> f32
Movement speed during this animation
pub fn set_move_speed(&mut self, value: f32)
Sourcepub fn flags(&self) -> SequenceFlag
pub fn flags(&self) -> SequenceFlag
Playback flags
pub fn set_flags(&mut self, value: SequenceFlag)
pub fn set_rarity(&mut self, value: f32)
Sourcepub fn sync_point(&self) -> u32
pub fn sync_point(&self) -> u32
Sync point for blending
pub fn set_sync_point(&mut self, value: u32)
Sourcepub fn extent(&self) -> Ref<'_, Extent>
pub fn extent(&self) -> Ref<'_, Extent>
Bounding volume for this sequence Borrows the field in place — no copy, no allocation.
pub fn extent_mut(&mut self) -> RefMut<'_, Extent>
Trait Implementations§
impl Send for Sequence
Auto Trait Implementations§
impl !Sync for Sequence
impl Freeze for Sequence
impl RefUnwindSafe for Sequence
impl Unpin for Sequence
impl UnsafeUnpin for Sequence
impl UnwindSafe for Sequence
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