-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIValueAnimator.cs
85 lines (72 loc) · 2.41 KB
/
IValueAnimator.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
using System;
namespace BrainbeanApps.ValueAnimation
{
/// <summary>
/// Defines methods to manipulate value animator.
/// </summary>
public interface IValueAnimator
{
/// <summary>
/// Gets and sets the delay of the animation start.
/// </summary>
/// <value>The delay, measured in seconds.</value>
float Delay { get; set; }
/// <summary>
/// Gets or sets the duration.
/// </summary>
/// <value>The duration.</value>
float Duration { get; set; }
/// <summary>
/// Gets the position of the animation.
/// </summary>
/// <value>The position, measured in seconds.</value>
float Position { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance is paused.
/// </summary>
/// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value>
bool IsPaused { get; set; }
/// <summary>
/// Gets the time passed.
/// </summary>
/// <value>The time passed.</value>
float TimePassed { get; }
/// <summary>
/// Gets a value indicating whether the animation is completed.
/// </summary>
/// <value><c>true</c> if the animation is completed; otherwise, <c>false</c>.</value>
bool IsCompleted { get; }
/// <summary>
/// Process the animation using the specified deltaTime.
/// </summary>
/// <param name="deltaTime">Delta time.</param>
void Process(float deltaTime);
/// <summary>
/// Reset this instance.
/// </summary>
void Reset();
// /// <summary>
// /// Occurs when the animation is started.
// /// </summary>
// event EventHandler<ValueAnimatorEventArgs> StartedEvent;
// /// <summary>
// /// Occurs when the animation is suspended.
// /// </summary>
// event EventHandler Suspended;
//
// /// <summary>
// /// Occurs when the animation is resumed.
// /// </summary>
// event EventHandler Resumed;
//
//
/// <summary>
/// Occurs when the animation is updated.
/// </summary>
event EventHandler UpdatedEvent;
/// <summary>
/// Occurs when the animation is completed.
/// </summary>
event EventHandler CompletedEvent;
}
}