Arcade
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
GameAPI.BudgetBoy.Delay Class Reference

Basic Awaitable used to delay execution of a coroutine for a given period of time. More...

Inheritance diagram for GameAPI.BudgetBoy.Delay:
GameAPI.BudgetBoy.Awaitable

Public Member Functions

 Delay (Stage stage, double seconds)
 Constructs a new Delay Awaitable using the given Stage and period in seconds. More...
 
- Public Member Functions inherited from GameAPI.BudgetBoy.Awaitable
void Update ()
 Update the task represented by this Awaitable for one frame. More...
 

Protected Member Functions

override void OnUpdate ()
 Called when the task represented by this Awaitable should update for one frame. More...
 
- Protected Member Functions inherited from GameAPI.BudgetBoy.Awaitable
virtual void OnStarted ()
 Called when the Awaitable first begins updating its task. More...
 
virtual void OnCompleted ()
 Called when the Awaitable has completed its task. More...
 

Properties

override bool IsComplete [get]
 Returns true if the delay has elapsed. More...
 
- Properties inherited from GameAPI.BudgetBoy.Awaitable
abstract bool IsComplete [get]
 When overridden, returns true if the Awaitable's task has completed. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GameAPI.BudgetBoy.Awaitable
static Awaitable FromObject (Object obj)
 Attempts to convert an object into an Awaitable. If the object is an IEnumerator or a function returning an IEnumerator it is converted into a Coroutine, otherwise it is assumed to extend Awaitable. Returns null if the object cannot be converted. More...
 
- Events inherited from GameAPI.BudgetBoy.Awaitable
EventHandler< AwaitableEventArgsStarted
 Event called when the Awaitable first begins updating its task. More...
 
EventHandler< AwaitableEventArgsCompleted
 Event called when the Awaitable has completed its task. More...
 

Detailed Description

Basic Awaitable used to delay execution of a coroutine for a given period of time.

Constructor & Destructor Documentation

GameAPI.BudgetBoy.Delay.Delay ( Stage  stage,
double  seconds 
)
inline

Constructs a new Delay Awaitable using the given Stage and period in seconds.

Parameters
stageStage to use to find a timestep each update.
secondsNumber of seconds to delay execution.

Member Function Documentation

override void GameAPI.BudgetBoy.Delay.OnUpdate ( )
inlineprotectedvirtual

Called when the task represented by this Awaitable should update for one frame.

Implements GameAPI.BudgetBoy.Awaitable.

Property Documentation

override bool GameAPI.BudgetBoy.Delay.IsComplete
get

Returns true if the delay has elapsed.