示例#1
0
        public AnimatedFloat(AnimateOperation o)
        {
            operation  = o;
            step_timer = new StepStopwatch(Duration.Seconds(0.050f)).Chain(z => z.Start());

            is_animating = true;
            sleep_timer  = new Timer(Duration.Seconds(0.5f));
        }
示例#2
0
        public AffectedValue(VALUE_TYPE r)
        {
            rest_value = r;

            is_active   = true;
            step_timer  = new StepStopwatch(Duration.Seconds(0.050f)).StartAndGet();
            sleep_timer = new Timer(Duration.Seconds(0.5f));

            affectors = new List <AffectedValueAffector <VALUE_TYPE> >();
        }
示例#3
0
 static public float StepSeconds(this StepStopwatch item)
 {
     return(item.StepTime().GetSeconds());
 }
示例#4
0
 static public Duration StepTime(this StepStopwatch item)
 {
     return(Duration.Milliseconds(item.Step()));
 }