pub fn add_deferred_animation(
        &mut self,
        id: I,
        animation: &Handle<Animation<T>>,
        end: EndControl,
        rate_multiplier: f32,
        command: AnimationCommand<T>,
        wait_for: I,
        wait_deferred_for: DeferStartRelation,
    ) {
        if let Some(_) = self.animations.iter().find(|a| a.0 == id) {
            return;
        }
        self.deferred_animations.push(DeferredStart {
            animation_id: id,
            relation: (wait_for, wait_deferred_for),
            control: AnimationControl::new(
                animation.clone(),
                end,
                ControlState::Requested,
                command,
                rate_multiplier,
            ),
        });
    }
/// Add deferred animation with the given id, unless it already exists
Add deferred animation with the given id, unless it already exists
Add deferred animation with the given id unless it already exists
pub fn add_deferred_animation(
        &mut self,
        id: I,
        animation: &Handle<Animation<T>>,
        end: EndControl,
        rate_multiplier: f32,
        command: AnimationCommand<T>,
        wait_for: I,
        wait_deferred_for: DeferStartRelation,
    ) {
        if let Some(_) = self.animations.iter().find(|a| a.0 == id) {
            return;
        }
        self.deferred_animations.push(DeferredStart {
            animation_id: id,
            relation: (wait_for, wait_deferred_for),
            control: AnimationControl::new(
                animation.clone(),
                end,
                ControlState::Requested,
                command,
                rate_multiplier,
            ),
        });
    }
pub fn add_deferred_animation ( & mut self , id : I , animation : & Handle < Animation < T > > , end : EndControl , rate_multiplier : f32 , command : AnimationCommand < T > , wait_for : I , wait_deferred_for : DeferStartRelation , ) { if let Some ( _ ) = self . animations . iter ( ) . find ( | a | a . 0 == id ) { return ; } self . deferred_animations . push ( DeferredStart { animation_id : id , relation : ( wait_for , wait_deferred_for ) , control : AnimationControl :: new ( animation . clone ( ) , end , ControlState :: Requested , command , rate_multiplier , ) , } ) ; }
Add deferred animation with the given id, unless it already exists
Add deferred animation with the given id unless it already exists
&mut self
id
I
animation
&Handle<Animation<T>>
end
EndControl
rate_multiplier
f32
command
AnimationCommand<T>
wait_for
I
wait_deferred_for
DeferStartRelation
&mut self
id
I
animation
&Handle<Animation<T>>
end
EndControl
rate_multiplier
f32
command
AnimationCommand<T>
wait_for
I
wait_deferred_for
DeferStartRelation