Click or drag to resize

CustomUpdateLoopBase Class

An abstract class for custom update loops that implement basic functionality to track invokation times and deltatimes.
Inheritance Hierarchy
SystemObject
  Archon.SwissArmyLib.Events.LoopsCustomUpdateLoopBase
    Archon.SwissArmyLib.Events.LoopsFrameIntervalUpdateLoop
    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 abstract class CustomUpdateLoopBase : ICustomUpdateLoop
Request Example View Source

The CustomUpdateLoopBase type exposes the following members.

Constructors
  NameDescription
Protected methodCustomUpdateLoopBase
Initializes a new instance of the CustomUpdateLoopBase class
Top
Properties
  NameDescription
Public propertyDeltaTime
Gets the scaled time since this update loop last ran.
Public propertyEvent
Gets the event associated with this update loop.
Public propertyIsTimeToRun
Gets whether it's time for this update loop to run again.
Public propertyUnscaledDeltaTime
Gets the unscaled time since this update loop last ran.
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.
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.
Protected fieldPreviousRunTimeUnscaled
Gets or sets in unscaled time when this update loop last ran.
Top
See Also