Artemis.Engine.TimeableObject.AtIntervals C# (CSharp) Метод

AtIntervals() публичный Метод

Returns true if the elapsed time is between the given start and end times, and is congruent to zero mod the given interval (with an error equal to ArtemisEngine.GameTimer.DeltaTime). If ET is the elapsed time, then this function is equivalent to saying (start <= ET && ET <= end) && (ET - start) % interval < ArtemisEngine.GameTimer.DeltaTime.
public AtIntervals ( double interval, double start, double end = Double.PositiveInfinity ) : bool
interval double
start double
end double
Результат bool
        public bool AtIntervals(double interval, double start = 0, double end = Double.PositiveInfinity)
        {
            return DuringOrAt(start, end) && (ElapsedTime - start) % interval < ArtemisEngine.GameTimer.DeltaTime;
        }

Same methods

TimeableObject::AtIntervals ( int interval, int start, int end = Int32.MaxValue ) : bool