pub struct Sequence { /* private fields */ }Expand description
SEQS — Animation sequence (v0–v2, up to 92 bytes)
Defines a named animation clip with frame range, playback speed, looping flags, blend time, and bounding volume.
Implementations§
Source§impl Sequence
impl Sequence
pub fn set_id(&mut self, value: i32)
pub fn set_index(&mut self, value: i32)
pub fn set_name(&mut self, value: &str)
Sourcepub fn start_frame(&self) -> u32
pub fn start_frame(&self) -> u32
First frame (inclusive)
pub fn set_start_frame(&mut self, value: u32)
pub fn set_end_frame(&mut self, value: u32)
Sourcepub fn move_speed(&self) -> f32
pub fn move_speed(&self) -> f32
Movement speed multiplier
pub fn set_move_speed(&mut self, value: f32)
Sourcepub fn flags(&self) -> SequenceFlag
pub fn flags(&self) -> SequenceFlag
Playback flags (loop, global, etc.)
pub fn set_flags(&mut self, value: SequenceFlag)
pub fn set_frequency(&mut self, value: u32)
Sourcepub fn replay_start(&self) -> u32
pub fn replay_start(&self) -> u32
Replay region start frame
pub fn set_replay_start(&mut self, value: u32)
Sourcepub fn replay_end(&self) -> u32
pub fn replay_end(&self) -> u32
Replay region end frame
pub fn set_replay_end(&mut self, value: u32)
Sourcepub fn blend_time(&self) -> u32
pub fn blend_time(&self) -> u32
Blend-in time (ms)
pub fn set_blend_time(&mut self, value: u32)
Sourcepub fn bounds(&self) -> Ref<'_, Extent>
pub fn bounds(&self) -> Ref<'_, Extent>
Animated bounding volume Borrows the field in place — no copy, no allocation.
pub fn bounds_mut(&mut self) -> RefMut<'_, Extent>
Sourcepub fn animation_sets(&self) -> &[u8] ⓘ
pub fn animation_sets(&self) -> &[u8] ⓘ
Animation set indices (U8__)
Zero-copy view of the underlying std::vector.
Sourcepub fn animation_sets_mut(&mut self) -> &mut [u8] ⓘ
pub fn animation_sets_mut(&mut self) -> &mut [u8] ⓘ
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_animation_sets(&mut self, values: &[u8])
pub fn resize_animation_sets(&mut self, count: usize)
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