MVVM frame work done, under unit test

This commit is contained in:
Nitload
2024-07-25 04:41:24 +08:00
parent 924fe6eef7
commit da75200347
101 changed files with 8435 additions and 847 deletions
+6 -1
View File
@@ -36,7 +36,6 @@ namespace StgSharp
{
public class TimeFunction
{
private float _beginning, _ending;
private Func<float, float> _timeRelatedCalculation;
private TimeSpanProvider _timeProvider;
@@ -106,6 +105,12 @@ namespace StgSharp
return new TimeFunction(_timeProvider, func, range);
}
public virtual TimeFunction Reverse()
{
float range = _ending - _beginning;
return new TimeFunction(_timeProvider, p => _timeRelatedCalculation(range - p) ,range);
}
public void Reset()
{
float range = _ending - _beginning;