Пример #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Animator3D" /> class.
 /// </summary>
 /// <param name="paths">
 ///     An array containing the list of paths of the animation
 /// </param>
 /// <param name="fpsLimiter">
 ///     Limits the maximum frames per seconds
 /// </param>
 public Animator3D(Path3D[] paths, FPSLimiterKnownValues fpsLimiter)
 {
     HorizontalAnimator = new Animator(fpsLimiter);
     VerticalAnimator   = new Animator(fpsLimiter);
     DepthAnimator      = new Animator(fpsLimiter);
     Paths = paths;
 }
Пример #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Animator2D" /> class.
 /// </summary>
 /// <param name="path">
 ///     The path of the animation
 /// </param>
 /// <param name="fpsLimiter">
 ///     Limits the maximum frames per seconds
 /// </param>
 public Animator2D(Path2D path, FPSLimiterKnownValues fpsLimiter)
     : this(new[]
 {
     path
 }, fpsLimiter)
 {
 }
Пример #3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Animator3D" /> class.
 /// </summary>
 /// <param name="fpsLimiter">
 ///     Limits the maximum frames per seconds
 /// </param>
 public Animator3D(FPSLimiterKnownValues fpsLimiter)
     : this(new Path3D[] {}, fpsLimiter)
 {
 }
Пример #4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Timer" /> class.
 /// </summary>
 /// <param name="callback">
 ///     The callback to be executed at each tick
 /// </param>
 /// <param name="fpsKnownLimit">
 ///     The max ticks per second
 /// </param>
 public Timer(Action <ulong> callback, FPSLimiterKnownValues fpsKnownLimit = FPSLimiterKnownValues.LimitThirty)
     : this(callback, (int)fpsKnownLimit)
 {
 }
Пример #5
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Animator" /> class.
 /// </summary>
 /// <param name="paths">
 ///     An array containing the list of paths of the animation
 /// </param>
 /// <param name="fpsLimiter">
 ///     Limits the maximum frames per seconds
 /// </param>
 /// <param name="type">
 ///     Redundant value. Enter 1
 /// </param>
 public Animator(Path[] paths, FPSLimiterKnownValues fpsLimiter, int type)
 {
     CurrentStatus = AnimatorStatus.Stopped;
     _timer        = new Timer(ElapsedInt, fpsLimiter);
     Paths         = paths;
 }
Пример #6
0
 public Animator(Path[] paths, FPSLimiterKnownValues fpsLimiter)
 {
     this.CurrentStatus = AnimatorStatus.Stopped;
     this._timer        = new Timer(new Action <ulong>(this.Elapsed), fpsLimiter);
     this.Paths         = paths;
 }
Пример #7
0
 public Animator(Path path, FPSLimiterKnownValues fpsLimiter)
     : this(new Path[1] {
     path
 }, fpsLimiter)
 {
 }
Пример #8
0
 public Animator(FPSLimiterKnownValues fpsLimiter)
     : this(new Path[0], fpsLimiter)
 {
 }
Пример #9
0
 public Animator2D(Path2D[] paths, FPSLimiterKnownValues fpsLimiter)
 {
     this.HorizontalAnimator = new Animator(fpsLimiter);
     this.VerticalAnimator   = new Animator(fpsLimiter);
     this.Paths = paths;
 }