/// <summary>Start an infinite animation that receives time passed since previous frame rendered</summary> public void startDelta(iDeltaTimeUpdate obj, eAnimationTimer time = eAnimationTimer.RelativeTime) { delta.AddOrUpdate(obj, new Animation(time)); RunPolicy.animationStarted(content); }
/// <summary>Start an infinite animation that receives total time elapsed</summary> public void startAbs(iAbsoluteTimeUpdate obj, eAnimationTimer time = eAnimationTimer.AbsoluteTime) { absolute.AddOrUpdate(obj, new Animation(time)); RunPolicy.animationStarted(content); }
/// <summary>Start a finite animation that receives a progress value, from 0 to 1.</summary> public void startProgress(TimeSpan duration, iAnimationProgressUpdate obj, eAnimationTimer time = eAnimationTimer.RelativeTime) { validateDuration(duration, true); progress.AddOrUpdate(obj, new ProgressAnimation(time, timers[time], duration)); RunPolicy.animationStarted(content); }
/// <summary>Start a finite animation that receives time passed since previous frame rendered</summary> public void startDelta(TimeSpan duration, iDeltaTimeUpdate obj, eAnimationTimer time = eAnimationTimer.RelativeTime) { validateDuration(duration, false); delta.AddOrUpdate(obj, new Animation(time, timers[time] + duration)); RunPolicy.animationStarted(content); }
/// <summary>Start a finite animation that receives total time elapsed</summary> public void startAbs(TimeSpan duration, iAbsoluteTimeUpdate obj, eAnimationTimer time = eAnimationTimer.AbsoluteTime) { validateDuration(duration, false); absolute.AddOrUpdate(obj, new Animation(time, timers[time] + duration)); RunPolicy.animationStarted(content); }
public FakeAnimation(Animations owner) { animations = owner; animations.m_fakes++; RunPolicy.animationStarted(owner.content); }