pub struct AnimRefU32 { /* private fields */ }Expand description
Animatable reference holding a default value and animation link
Holds both a constant default value and a link to keyframed animation data. If animId == 0, the property is not animated — use initValue as a constant. Otherwise, resolve through STC_.animIds to locate keyframe data. Total size depends on sizeof(T): 12 + 2*sizeof(T) + 4 bytes.
@tparam T The value type (f32, Vector3f, Quaternion, ColorBGRA, Extent, etc.)
Implementations§
Source§impl AnimRefU32
impl AnimRefU32
Sourcepub fn interp_type(&self) -> u16
pub fn interp_type(&self) -> u16
Interpolation: 0=none/step, 1=linear, 2=hermite, 3=bezier
pub fn set_interp_type(&mut self, value: u16)
pub fn set_flags(&mut self, value: u16)
Sourcepub fn anim_id(&self) -> u32
pub fn anim_id(&self) -> u32
Animation identifier (links to STC animation data; 0=not animated)
pub fn set_anim_id(&mut self, value: u32)
Sourcepub fn init_value(&self) -> u32
pub fn init_value(&self) -> u32
Initial/default value (used when not animated)
pub fn set_init_value(&mut self, value: u32)
Sourcepub fn null_value(&self) -> u32
pub fn null_value(&self) -> u32
Null/reset value
pub fn set_null_value(&mut self, value: u32)
pub fn set_unused(&mut self, value: i32)
Trait Implementations§
Source§impl Debug for AnimRefU32
impl Debug for AnimRefU32
Source§impl Default for AnimRefU32
impl Default for AnimRefU32
Source§impl Drop for AnimRefU32
impl Drop for AnimRefU32
impl Send for AnimRefU32
Auto Trait Implementations§
impl !Sync for AnimRefU32
impl Freeze for AnimRefU32
impl RefUnwindSafe for AnimRefU32
impl Unpin for AnimRefU32
impl UnsafeUnpin for AnimRefU32
impl UnwindSafe for AnimRefU32
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