Types
Enums and types declared in FlowTypes.h.
Enums
EFPStopType
FlowPilot Stop Type
| Value | Description |
|---|---|
Cancel ExecutionCancelExecution | Cancel Execution will call Exit with Failure state on Running Tasks |
Stop NowStopNow | Stop Now will just stop execution. Exit won't be called. |
EFPTaskResult
Task Execution Result
| Value | Description |
|---|---|
NoneNone | Not started yet |
In ProgressInProgress | In progress and Ticking |
SucceededSucceeded | Complete with Success Result |
FailedFailed | Complete with Fail Result |
ErrorError | Not Complete. Return Error |
EFlowState
Flow State
| Value | Description |
|---|---|
NoneNone | Not started yet |
In ProgressInProgress | FlowPilot Running |
PausedPaused | FlowPilot has started but is paused |
SucceededSucceeded | FlowPilot Done with Success |
FailedFailed | FlowPilot Done with fail |
ErrorError | FlowPilot not Done, with Error |
EFPActorScope
Actor Scope
- Helps determine the search scope when referencing an actor with FFlowActorReference
| Value | Description |
|---|---|
SelfSelf | Actor or Component is in Own Actor |
In LevelInLevel | Actor that live in the world |
RuntimeRuntime | Actors spawned at Runtime |
EFPSpawnLifetime
Spawn Lifetime Enum
- Helps Setup automatic Destroy when lifetime is bound to a FlowPilot Execution
| Value | Description |
|---|---|
Flow PilotFlowPilot | Spawned actor will live during FlowPilot Execution, will despawn automatically when Flow Ends. |
PersistentPersistent | TODO (MA): Add a Checkpoint lifetime? or internal scope, example, when we add another FlowAsset, or a Parallel, sequence or selector. Spawned actors will stay on the level event when Flow Stops. |
EFPExecutionMode
Execution Mode
- Dictates how we should run a FlowPilot asset
| Value | Description |
|---|---|
Run OnceRunOnce | Executes Flow Once. |
Run Until SucceedRunUntilSucceed | Executes until Succeeds Once |
Run Until FailRunUntilFail | Executes until Fails Once |
Run While SucceedRunWhileSucceed | Executes in Loop while Succeeds |
Run While FailRunWhileFail | Executes in Loop while Fails |
Run Non StopRunNonStop | Run non stop. |
FFlowContext
Flow Context
- Contains information passed to each Task that has information about their owner, and runners.
| Field | Type | Description |
|---|---|---|
World | UWorld | |
OwnerActor | AActor | |
OwnerComponent | UFlowPilotComponent |