pub struct RibbonAnimationRaw {
pub emitter_index: usize,
pub track_type: RibbonTrackType,
pub interpolation_ranges: Vec<u8>,
pub timestamps: Vec<u8>,
pub values: Vec<u8>,
pub original_ranges_offset: u32,
pub original_timestamps_offset: u32,
pub original_values_offset: u32,
}Expand description
Raw animation data for a single ribbon emitter track
This preserves the exact bytes from the original file for ribbon animation keyframes, allowing roundtrip serialization without data loss. Ribbon emitters have 4 different animation tracks (color, alpha, height_above, height_below).
Fields§
§emitter_index: usizeIndex of the ribbon emitter this track belongs to
track_type: RibbonTrackTypeType of animation track
interpolation_ranges: Vec<u8>Raw interpolation range bytes (8 bytes per range: start u32 + end u32)
timestamps: Vec<u8>Raw timestamp bytes (4 bytes per timestamp)
values: Vec<u8>Raw keyframe value bytes (size depends on track type)
original_ranges_offset: u32Original file offset for interpolation_ranges array
original_timestamps_offset: u32Original file offset for timestamps array
original_values_offset: u32Original file offset for values array
Trait Implementations§
Source§impl Clone for RibbonAnimationRaw
impl Clone for RibbonAnimationRaw
Source§fn clone(&self) -> RibbonAnimationRaw
fn clone(&self) -> RibbonAnimationRaw
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RibbonAnimationRaw
impl Debug for RibbonAnimationRaw
Source§impl Default for RibbonAnimationRaw
impl Default for RibbonAnimationRaw
Source§fn default() -> RibbonAnimationRaw
fn default() -> RibbonAnimationRaw
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RibbonAnimationRaw
impl RefUnwindSafe for RibbonAnimationRaw
impl Send for RibbonAnimationRaw
impl Sync for RibbonAnimationRaw
impl Unpin for RibbonAnimationRaw
impl UnwindSafe for RibbonAnimationRaw
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().