Ejemplo n.º 1
0
        static public int GetWholeSeconds(this Duration item, out Duration remainder)
        {
            int whole_seconds = item.GetWholeSeconds();

            remainder = item - Duration.Seconds(whole_seconds);
            return(whole_seconds);
        }
Ejemplo n.º 2
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));
        }
Ejemplo n.º 3
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> >();
        }
Ejemplo n.º 4
0
 static public void SetDurationInSeconds(this TemporalDuration item, float seconds)
 {
     item.SetDuration(Duration.Seconds(seconds));
 }
Ejemplo n.º 5
0
 static public void RestartSetElapsedTimeInSeconds(this TemporalSeries item, float seconds)
 {
     item.RestartSetElapsedTime(Duration.Seconds(seconds));
 }
Ejemplo n.º 6
0
 static public int GetNormalRotatingHashCodeEX(this Object item)
 {
     return(item.GetRotatingHashCodeEX(Duration.Seconds(4.0f)));
 }
Ejemplo n.º 7
0
 static public bool StartSetDurationInSeconds(this TemporalDuration item, float seconds)
 {
     return(item.StartSetDuration(Duration.Seconds(seconds)));
 }
Ejemplo n.º 8
0
 static public bool StartWithRandomElapsedTimeInSeconds(this TemporalSeries item, float seconds)
 {
     return(item.StartWithRandomElapsedTime(Duration.Seconds(seconds)));
 }