Class DefaultAnimationEngine
- Namespace
- Lime
- Assembly
- Lime.dll
public class DefaultAnimationEngine : AnimationEngine
- Inheritance
-
DefaultAnimationEngine
- Derived
-
- Inherited Members
-
Fields
Instance
public static DefaultAnimationEngine Instance
Field Value
- DefaultAnimationEngine
Methods
AdvanceAnimation(Animation, double)
public override void AdvanceAnimation(Animation animation, double delta)
Parameters
animation
Animation
delta
double
ApplyAnimatorsAndExecuteTriggers(Animation, double, double, bool)
- Refreshes animation.EffectiveAnimators;
- Applies each animator at currentTime;
- Executes triggers in given range.
The range is [previousTime, currentTime) or [previousTime, currentTime]
depending on executeTriggersAtCurrentTime flag.
This method doesn't depend on animation.Time value.
public override void ApplyAnimatorsAndExecuteTriggers(Animation animation, double previousTime, double currentTime, bool executeTriggersAtCurrentTime)
Parameters
animation
Animation
previousTime
double
currentTime
double
executeTriggersAtCurrentTime
bool
AreEffectiveAnimatorsValid(Animation)
public override bool AreEffectiveAnimatorsValid(Animation animation)
Parameters
animation
Animation
Returns
- bool
BuildEffectiveAnimators(Animation)
public override void BuildEffectiveAnimators(Animation animation)
Parameters
animation
Animation
FindMarkerAhead(Animation, double)
protected static Marker FindMarkerAhead(Animation animation, double time)
Parameters
animation
Animation
time
double
Returns
- Marker
ProcessMarker(Animation, Marker, double, double)
protected virtual void ProcessMarker(Animation animation, Marker marker, double previousTime, double currentTime)
Parameters
animation
Animation
marker
Marker
previousTime
double
currentTime
double
RaiseStopped(Animation)
public override void RaiseStopped(Animation animation)
Parameters
animation
Animation
TryRunAnimation(Animation, string, double)
public override bool TryRunAnimation(Animation animation, string markerId, double animationTimeCorrection = 0)
Parameters
animation
Animation
markerId
string
animationTimeCorrection
double
Returns
- bool