pub struct AnimRefU16 { /* 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 AnimRefU16
impl AnimRefU16
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) -> u16
pub fn init_value(&self) -> u16
Initial/default value (used when not animated)
pub fn set_init_value(&mut self, value: u16)
Sourcepub fn null_value(&self) -> u16
pub fn null_value(&self) -> u16
Null/reset value
pub fn set_null_value(&mut self, value: u16)
pub fn set_unused(&mut self, value: i32)
Trait Implementations§
Source§impl Debug for AnimRefU16
impl Debug for AnimRefU16
Source§impl Default for AnimRefU16
impl Default for AnimRefU16
Source§impl Drop for AnimRefU16
impl Drop for AnimRefU16
impl Send for AnimRefU16
Auto Trait Implementations§
impl !Sync for AnimRefU16
impl Freeze for AnimRefU16
impl RefUnwindSafe for AnimRefU16
impl Unpin for AnimRefU16
impl UnsafeUnpin for AnimRefU16
impl UnwindSafe for AnimRefU16
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