Arcade
|
Base class for objects representing tasks that are performed over several frames, mainly used within coroutines to pause control flow until the corresponding task is complete. More...
Public Member Functions | |
void | Update () |
Update the task represented by this Awaitable for one frame. More... | |
Static Public Member Functions | |
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... | |
Protected Member Functions | |
virtual void | OnStarted () |
Called when the Awaitable first begins updating its task. More... | |
abstract void | OnUpdate () |
Called when the task represented by this Awaitable should update for one frame. More... | |
virtual void | OnCompleted () |
Called when the Awaitable has completed its task. More... | |
Properties | |
abstract bool | IsComplete [get] |
When overridden, returns true if the Awaitable's task has completed. More... | |
Events | |
EventHandler< AwaitableEventArgs > | Started |
Event called when the Awaitable first begins updating its task. More... | |
EventHandler< AwaitableEventArgs > | Completed |
Event called when the Awaitable has completed its task. More... | |
Base class for objects representing tasks that are performed over several frames, mainly used within coroutines to pause control flow until the corresponding task is complete.
|
inlinestatic |
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.
obj | Object to convert. |
|
inlineprotectedvirtual |
Called when the Awaitable has completed its task.
|
inlineprotectedvirtual |
Called when the Awaitable first begins updating its task.
|
protectedpure virtual |
Called when the task represented by this Awaitable should update for one frame.
Implemented in GameAPI.BudgetBoy.Parallel, GameAPI.BudgetBoy.Sequential, GameAPI.BudgetBoy.PlayAnimation, GameAPI.BudgetBoy.Until, GameAPI.BudgetBoy.While, and GameAPI.BudgetBoy.Delay.
|
inline |
Update the task represented by this Awaitable for one frame.
|
get |
When overridden, returns true if the Awaitable's task has completed.
EventHandler<AwaitableEventArgs> GameAPI.BudgetBoy.Awaitable.Completed |
Event called when the Awaitable has completed its task.
EventHandler<AwaitableEventArgs> GameAPI.BudgetBoy.Awaitable.Started |
Event called when the Awaitable first begins updating its task.