C# Class hyades.utils.TimerCollection

A managed collection of timers.
Afficher le fichier Open project: zfedoran/bubblebound Class Usage Examples

Méthodes publiques

Méthode Description
Create ( float tickLength, bool repeats, Action tick ) : Timer

Creates a new Timer.

GetInstance ( ) : TimerCollection
Update ( double elapsed ) : void

Updates all timers in the collection.

Private Methods

Méthode Description
TimerCollection ( ) : System

Method Details

Create() public méthode

Creates a new Timer.
public Create ( float tickLength, bool repeats, Action tick ) : Timer
tickLength float The amount of time between the timer's ticks.
repeats bool Whether or not the timer repeats.
tick Action An action to perform when the timer ticks.
Résultat Timer

GetInstance() public static méthode

public static GetInstance ( ) : TimerCollection
Résultat TimerCollection

Update() public méthode

Updates all timers in the collection.
public Update ( double elapsed ) : void
elapsed double
Résultat void