pub(crate) fn new(animation: Animation) -> Self {
        let mut sheet = HashMap::new();
        let mut messages = vec![];
        let (time, looped) = Self::include_animation(animation, &mut sheet, &mut messages, 0.0);
        Self {
            sheet,
            messages,
            time: 0.0,
            duration: time,
            looped,
        }
    }
/// Initialize a new [`AnimatorState`] given an animation
Initialize a new [`AnimatorState`] given an animation
Initialize a new [ ` AnimatorState ` ] given an animation
pub(crate) fn new(animation: Animation) -> Self {
        let mut sheet = HashMap::new();
        let mut messages = vec![];
        let (time, looped) = Self::include_animation(animation, &mut sheet, &mut messages, 0.0);
        Self {
            sheet,
            messages,
            time: 0.0,
            duration: time,
            looped,
        }
    }
pub ( crate ) fn new ( animation : Animation ) -> Self { let mut sheet = HashMap :: new ( ) ; let mut messages = vec ! [ ] ; let ( time , looped ) = Self :: include_animation ( animation , & mut sheet , & mut messages , 0.0 ) ; Self { sheet , messages , time : 0.0 , duration : time , looped , } }
Initialize a new [`AnimatorState`] given an animation
Initialize a new [ ` AnimatorState ` ] given an animation
animation
Animation
animation
Animation