pub struct Animation {
pub clip: Option<String>,
pub speed: Option<f32>,
pub looping: Option<Repeat>,
pub start: Option<f32>,
pub blend: Option<Vec<BlendClip>>,
pub events: Vec<ClipEvent>,
pub atlas: Option<String>,
pub grid: Option<[u32; 2]>,
pub frames: Option<Vec<[u32; 4]>>,
pub fps: Option<f32>,
pub clips: BTreeMap<String, SpriteClip>,
}Fields§
§clip: Option<String>§speed: Option<f32>§looping: Option<Repeat>§start: Option<f32>§blend: Option<Vec<BlendClip>>§events: Vec<ClipEvent>§atlas: Option<String>§grid: Option<[u32; 2]>§frames: Option<Vec<[u32; 4]>>§fps: Option<f32>§clips: BTreeMap<String, SpriteClip>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Animation
impl<'de> Deserialize<'de> for Animation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Animation
Auto Trait Implementations§
impl Freeze for Animation
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnsafeUnpin for Animation
impl UnwindSafe for Animation
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