pub struct AnimationState { /* private fields */ }Expand description
STS_ — Animation state (v0, 28 bytes)
Top-level animation state containing a set of animation IDs and 16 bytes of unknown state data.
Implementations§
Source§impl AnimationState
impl AnimationState
Sourcepub fn anim_ids(&self) -> &[u32]
pub fn anim_ids(&self) -> &[u32]
Animation IDs (U32_)
Zero-copy view of the underlying std::vector.
Sourcepub fn anim_ids_mut(&mut self) -> &mut [u32]
pub fn anim_ids_mut(&mut self) -> &mut [u32]
Zero-copy mutable view. Resize first — the borrow forbids it after.
pub fn set_anim_ids(&mut self, values: &[u32])
pub fn resize_anim_ids(&mut self, count: usize)
Sourcepub fn unknown_len() -> usize
pub fn unknown_len() -> usize
Unknown state data (16 bytes)
pub fn unknown(&self, index: usize) -> u8
pub fn set_unknown(&mut self, index: usize, value: u8)
Trait Implementations§
Source§impl Debug for AnimationState
impl Debug for AnimationState
Source§impl Default for AnimationState
impl Default for AnimationState
Source§impl Drop for AnimationState
impl Drop for AnimationState
impl Send for AnimationState
Auto Trait Implementations§
impl !Sync for AnimationState
impl Freeze for AnimationState
impl RefUnwindSafe for AnimationState
impl Unpin for AnimationState
impl UnsafeUnpin for AnimationState
impl UnwindSafe for AnimationState
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