/// <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; }
/// <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) { }
/// <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) { }
/// <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) { }
/// <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; }
public Animator(Path[] paths, FPSLimiterKnownValues fpsLimiter) { this.CurrentStatus = AnimatorStatus.Stopped; this._timer = new Timer(new Action <ulong>(this.Elapsed), fpsLimiter); this.Paths = paths; }
public Animator(Path path, FPSLimiterKnownValues fpsLimiter) : this(new Path[1] { path }, fpsLimiter) { }
public Animator(FPSLimiterKnownValues fpsLimiter) : this(new Path[0], fpsLimiter) { }
public Animator2D(Path2D[] paths, FPSLimiterKnownValues fpsLimiter) { this.HorizontalAnimator = new Animator(fpsLimiter); this.VerticalAnimator = new Animator(fpsLimiter); this.Paths = paths; }