-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIValueAnimatorT.cs
50 lines (43 loc) · 1.41 KB
/
IValueAnimatorT.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
using System;
namespace BrainbeanApps.ValueAnimation
{
public interface IValueAnimator<T> : IValueAnimator
where T : struct, IComparable
{
/// <summary>
/// Gets or sets the animation.
/// </summary>
/// <value>The animation.</value>
ValueAnimation<T> Animation { get; set; }
/// <summary>
/// Gets or sets the initial value.
/// </summary>
/// <value>The initial value.</value>
T? InitialValue { get; set; }
/// <summary>
/// Gets or sets the initial value getter.
/// </summary>
/// <value>The initial value getter.</value>
Func<T> InitialValueGetter { get; set; }
/// <summary>
/// Gets or sets the delta value.
/// </summary>
/// <value>The delta value.</value>
T? DeltaValue { get; set; }
/// <summary>
/// Gets or sets the delta value getter.
/// </summary>
/// <value>The delta value getter.</value>
Func<T> DeltaValueGetter { get; set; }
/// <summary>
/// Gets the current value.
/// </summary>
/// <value>The current value.</value>
T? CurrentValue { get; }
/// <summary>
/// Gets or sets the current value setter.
/// </summary>
/// <value>The current value setter.</value>
Action<T> CurrentValueSetter { get; set; }
}
}