C# Class hyades.utils.TimerCollection

A managed collection of timers.
ファイルを表示 Open project: zfedoran/bubblebound Class Usage Examples

Public Methods

Method 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

Method Description
TimerCollection ( ) : System

Method Details

Create() public method

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.
return Timer

GetInstance() public static method

public static GetInstance ( ) : TimerCollection
return TimerCollection

Update() public method

Updates all timers in the collection.
public Update ( double elapsed ) : void
elapsed double
return void