예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
 /// <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);
 }
예제 #5
0
 /// <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);
 }
예제 #6
0
 public FakeAnimation(Animations owner)
 {
     animations = owner;
     animations.m_fakes++;
     RunPolicy.animationStarted(owner.content);
 }