Navigation
API > API/Plugins > API/Plugins/StateTreeModule
| Name | TTasksCompletionStatus |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/StateTree/Source/StateTreeModule/Public/StateTreeTasksStatus.h |
| Include Path | #include "StateTreeTasksStatus.h" |
Syntax
template<typename T>
struct TTasksCompletionStatus
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TTasksCompletionStatus
(
TNotNull< T* > InFirstCompletionBits, |
StateTreeTasksStatus.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| MaxNumTasks | int32 | StateTreeTasksStatus.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BitIndex | int32 | The offset, in bits, of the first task inside the mask. | StateTreeTasksStatus.h | |
| CompletionMask | T | The mask that represents each task considered by the state/frame for completion. | StateTreeTasksStatus.h | |
| FirstCompletionBits | T * | The first buffer. 00 is Running and 01 is Stopped. | StateTreeTasksStatus.h | |
| SecondCompletionBits | T * | The second buffer. 10 is Succeeded and 11 is Failed. | StateTreeTasksStatus.h | |
| TaskControl | EStateTreeTaskCompletionType | How the mask is tested to complete the state/frame. | StateTreeTasksStatus.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| The completion status of all tasks or any task, in priority order. | StateTreeTasksStatus.h | ||
ETaskCompletionStatus GetStatus
(
int32 StateTaskIndex |
StateTreeTasksStatus.h | ||
bool HasAllCompleted() |
StateTreeTasksStatus.h | ||
bool HasAnyCompleted() |
StateTreeTasksStatus.h | ||
bool HasAnyFailed() |
StateTreeTasksStatus.h | ||
bool HasFailed
(
int32 StateTaskIndex |
StateTreeTasksStatus.h | ||
bool IsCompleted() |
StateTreeTasksStatus.h | ||
bool IsConsideredForCompletion
(
int32 StateTaskIndex |
StateTreeTasksStatus.h | ||
bool IsRunning
(
int32 StateTaskIndex |
StateTreeTasksStatus.h | ||
void ResetStatus
(
int32 NumberOfTasksInTheCompletionMask |
Set the status of all tasks to running. | StateTreeTasksStatus.h | |
void SetCompletionStatus
(
ETaskCompletionStatus NewStatus |
Set the status of all tasks in the completion mask. | StateTreeTasksStatus.h | |
void SetStatus
(
int32 StateTaskIndex, |
Set the status of a task. | StateTreeTasksStatus.h | |
ETaskCompletionStatus SetStatusWithPriority
(
int32 StateTaskIndex, |
Set the status of a task respecting the previous status value. | StateTreeTasksStatus.h |