Rebornbuddy
|
Represents an action that runs a coroutine. More...
Public Member Functions | |
ActionRunCoroutine (Func< object, Coroutine > coroutineProducer) | |
Initializes a new instance with the specified coroutine producer. | |
ActionRunCoroutine (Func< object, Task< bool > > taskProducer) | |
Initializes a new instance with the specified task producer. | |
ActionRunCoroutine (Func< object, CoroutineTask< bool > > taskProducer) | |
Initializes a new instance with the specified coroutine task producer. | |
ActionRunCoroutine (Func< object, Task > taskProducer) | |
Initializes a new instance with the specified task producer. | |
ActionRunCoroutine (Func< object, CoroutineTask > taskProducer) | |
Initializes a new instance with the specified coroutine task producer. | |
override void | Start (object context) |
override void | Stop (object context) |
Protected Member Functions | |
override RunStatus | Run (object context) |
Represents an action that runs a coroutine.
The RunStatus that this action returns depends on the Coroutine being run.
If the coroutine yields, the action returns RunStatus.Running and does not resume until next tick.
If the coroutine returns boolean false
, the action returns RunStatus.Failure.
If the coroutine terminates with any other result than boolean false
, the action returns RunStatus.Success.
TreeSharp.ActionRunCoroutine.ActionRunCoroutine | ( | Func< object, Coroutine > | coroutineProducer | ) |
Initializes a new instance with the specified coroutine producer.
coroutineProducer | A function that produces a coroutine. |
TreeSharp.ActionRunCoroutine.ActionRunCoroutine | ( | Func< object, Task< bool > > | taskProducer | ) |
Initializes a new instance with the specified task producer.
taskProducer | A function that produces a task that is regarded as the root of a coroutine. |
TreeSharp.ActionRunCoroutine.ActionRunCoroutine | ( | Func< object, CoroutineTask< bool > > | taskProducer | ) |
Initializes a new instance with the specified coroutine task producer.
taskProducer | A function that produces a coroutine task that is regarded as the root of a coroutine. |
TreeSharp.ActionRunCoroutine.ActionRunCoroutine | ( | Func< object, Task > | taskProducer | ) |
Initializes a new instance with the specified task producer.
taskProducer | A function that produces a task that is regarded as the root of a coroutine. |
TreeSharp.ActionRunCoroutine.ActionRunCoroutine | ( | Func< object, CoroutineTask > | taskProducer | ) |
Initializes a new instance with the specified coroutine task producer.
taskProducer | A function that produces a coroutine task that is regarded as the root of a coroutine. |
|
protected |
override void TreeSharp.ActionRunCoroutine.Start | ( | object | context | ) |
override void TreeSharp.ActionRunCoroutine.Stop | ( | object | context | ) |