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)); }
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> >(); }
static public float StepSeconds(this StepStopwatch item) { return(item.StepTime().GetSeconds()); }
static public Duration StepTime(this StepStopwatch item) { return(Duration.Milliseconds(item.Step())); }