Arcade
|
Base class for any types that hold a CoroutineCollection, providing some protected methods for convenience. More...
Protected Member Functions | |
CoroutineContainer () | |
Base constructor for a CoroutineContainer with an empty CoroutineCollection. More... | |
abstract Stage | GetStage () |
Should return the Stage containing this instance, used to find things like the time step to use for Delay awaitables. More... | |
Awaitable | Delay (double seconds) |
Creates a Delay Awaitable representing a pause of execution for the given duration. More... | |
Awaitable | While (Func< bool > predicate) |
Creates a While Awaitable representing a pause of execution while the given predicate evaluates as true, where evaluation occurs each update. More... | |
Awaitable | Until (Func< bool > predicate) |
Creates an Until Awaitable representing a pause of execution until the given predicate evaluates as true, where evaluation occurs each update. More... | |
Awaitable | Sequential (params Awaitable[] inner) |
Creates a Sequential Awaitable representing a pause of execution until all elements of the given array of Awaitables have been executed in sequence. More... | |
Awaitable | Parallel (params Awaitable[] inner) |
Creates a Parallel Awaitable representing a pause of execution until all elements of the given array of Awaitables have been executed concurrently. More... | |
Awaitable | PlayAnimation (Animation anim) |
Creates a PlayAnimation Awaitable representing a pause of execution until the given Animation has completed. The animation will be advanced automatically. More... | |
Awaitable | PlayAnimation (Animation anim, Awaitable @while) |
Creates a PlayAnimation Awaitable representing a pause of execution until either the given Animation or Awaitable has completed. The animation will be advanced automatically. Used for looping animations that would otherwise never terminate. More... | |
Awaitable | WaitForAnimation (Animation anim) |
Creates a PlayAnimation Awaitable representing a pause of execution until the given Animation has completed. The animation will not be advanced automatically. More... | |
Awaitable | WaitForAnimation (Animation anim, Awaitable @while) |
Creates a PlayAnimation Awaitable representing a pause of execution until either the given Animation or Awaitable has completed. The animation will not be advanced automatically. Used for looping animations that would otherwise never terminate. More... | |
Coroutine | StartCoroutine (params Object[] awaitables) |
Starts a coroutine from a sequence of objects that can be converted to Awaitable instances. More... | |
Coroutine | StartCoroutine (IEnumerator routine) |
Starts a coroutine from an IEnumerator that is expected to yeild Awaitable instances, null references (to delay until next the update), or other IEnumerator coroutines. When another IEnumerator is yielded the parent IEnumerator will pause execution until the child IEnumerator has finished. More... | |
Coroutine | StartCoroutine (Func< IEnumerator > routine) |
Starts a coroutine from a function returning IEnumerator that is expected to yeild Awaitable instances, null references (to delay until next the update), or other IEnumerator coroutines. When another IEnumerator is yielded the parent IEnumerator will pause execution until the child IEnumerator has finished. More... | |
void | UpdateCoroutines () |
Causes all active Coroutine instances attached to this CoroutineContainer to execute one step. More... | |
Base class for any types that hold a CoroutineCollection, providing some protected methods for convenience.
|
inlineprotected |
Base constructor for a CoroutineContainer with an empty CoroutineCollection.
|
inlineprotected |
|
protectedpure virtual |
Should return the Stage containing this instance, used to find things like the time step to use for Delay awaitables.
Implemented in GameAPI.BudgetBoy.Stage, and GameAPI.BudgetBoy.Entity.
Creates a PlayAnimation Awaitable representing a pause of execution until the given Animation has completed. The animation will be advanced automatically.
anim | Animation to play. |
|
inlineprotected |
Creates a PlayAnimation Awaitable representing a pause of execution until either the given Animation or Awaitable has completed. The animation will be advanced automatically. Used for looping animations that would otherwise never terminate.
|
inlineprotected |
Creates a Sequential Awaitable representing a pause of execution until all elements of the given array of Awaitables have been executed in sequence.
inner | Sequence of Awaitables to be executed. |
|
inlineprotected |
|
inlineprotected |
Starts a coroutine from an IEnumerator that is expected to yeild Awaitable instances, null references (to delay until next the update), or other IEnumerator coroutines. When another IEnumerator is yielded the parent IEnumerator will pause execution until the child IEnumerator has finished.
routine | IEnumerator representing a Coroutine. |
|
inlineprotected |
Starts a coroutine from a function returning IEnumerator that is expected to yeild Awaitable instances, null references (to delay until next the update), or other IEnumerator coroutines. When another IEnumerator is yielded the parent IEnumerator will pause execution until the child IEnumerator has finished.
routine | Function representing a Coroutine. |
|
inlineprotected |
|
inlineprotected |
Causes all active Coroutine instances attached to this CoroutineContainer to execute one step.
Creates a PlayAnimation Awaitable representing a pause of execution until the given Animation has completed. The animation will not be advanced automatically.
anim | Animation to play. |
|
inlineprotected |
Creates a PlayAnimation Awaitable representing a pause of execution until either the given Animation or Awaitable has completed. The animation will not be advanced automatically. Used for looping animations that would otherwise never terminate.
|
inlineprotected |