Click or drag to resize

TimeIntervalUpdateLoop Class

A basic custom update loop that runs every nth second either in scaled or unscaled time.
Inheritance Hierarchy
SystemObject
  Archon.SwissArmyLib.Events.LoopsCustomUpdateLoopBase
    Archon.SwissArmyLib.Events.LoopsTimeIntervalUpdateLoop

Namespace:  Archon.SwissArmyLib.Events.Loops
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class TimeIntervalUpdateLoop : CustomUpdateLoopBase
Request Example View Source

The TimeIntervalUpdateLoop type exposes the following members.

Constructors
  NameDescription
Public methodTimeIntervalUpdateLoop
Creates a new TimeIntervalUpdateLoop.
Top
Properties
  NameDescription
Public propertyDeltaTime
Gets the scaled time since this update loop last ran.
(Inherited from CustomUpdateLoopBase.)
Public propertyEvent
Gets the event associated with this update loop.
(Inherited from CustomUpdateLoopBase.)
Public propertyInterval
Gets or sets the amount of seconds between each time this update loop runs.
Public propertyIsTimeToRun
Gets whether it's time for this update loop to run again.
(Overrides CustomUpdateLoopBaseIsTimeToRun.)
Public propertyUnscaledDeltaTime
Gets the unscaled time since this update loop last ran.
(Inherited from CustomUpdateLoopBase.)
Public propertyUsingScaledTime
Gets whether this interval update loop uses scaled or unscaled time for its interval.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodInvoke
Runs this update loop's event.
(Overrides CustomUpdateLoopBaseInvoke.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldPreviousRunTimeScaled
Gets or sets in scaled time when this update loop last ran.
(Inherited from CustomUpdateLoopBase.)
Protected fieldPreviousRunTimeUnscaled
Gets or sets in unscaled time when this update loop last ran.
(Inherited from CustomUpdateLoopBase.)
Top
See Also