Navigation
API > API/Runtime > API/Runtime/MassEntity
| Name | FMassExecutionContext |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassExecutionContext.h |
| Include Path | #include "MassExecutionContext.h" |
Syntax
struct FMassExecutionContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMassExecutionContext
(
const FMassExecutionContext& Other, |
MassExecutionContext.h | ||
FMassExecutionContext
(
FMassEntityManager& InEntityManager, |
MassExecutionContext.h | ||
FMassExecutionContext
(
const FMassExecutionContext& Other |
MassExecutionContext.h | ||
FMassExecutionContext
(
FMassExecutionContext&& Other |
MassExecutionContext.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FMassExecutionContext() |
MassExecutionContext.h |
Structs
| Name | Remarks |
|---|---|
| FEntityIterator | Iterator to easily loop through entities in the current chunk. |
| FQueryTransientRuntime | |
| TFragmentView |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FChunkFragmentView | TFragmentView< FStructView > | MassExecutionContext.h | |
| FConstSharedFragmentView | TFragmentView< FConstStructView > | MassExecutionContext.h | |
| FFragmentView | TFragmentView< TArrayView< FMassFragment > > | MassExecutionContext.h | |
| FSharedFragmentView | TFragmentView< FStructView > | MassExecutionContext.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AuxData | FInstancedStruct | MassExecutionContext.h | ||
| bFlushDeferredCommands | bool | Used to control when the context is allowed to flush commands collected in DeferredCommandBuffer. | MassExecutionContext.h | |
| ChunkFragmentViews | TArray< FChunkFragmentView, TInlineAllocator< 4 > > | MassExecutionContext.h | ||
| ChunkSerialModificationNumber | int32 | MassExecutionContext.h | ||
| ConstSharedFragmentViews | TArray< FConstSharedFragmentView, TInlineAllocator< 4 > > | MassExecutionContext.h | ||
| CurrentArchetypeCompositionDescriptor | FMassArchetypeCompositionDescriptor | MassExecutionContext.h | ||
| DebugColor | FColor | MassExecutionContext.h | ||
| DebugExecutionDescription | FString | MassExecutionContext.h | ||
| DebugProcessor | TWeakObjectPtr< UMassProcessor > | Js | MassExecutionContext.h | |
| DeferredCommandBuffer | TSharedPtr< FMassCommandBuffer > | Mz | MassExecutionContext.h | |
| DeltaTimeSeconds | float | MassExecutionContext.h | ||
| EntityCollection | FMassArchetypeEntityCollection | If set this indicates the exact archetype and its chunks to be processed. | MassExecutionContext.h | |
| EntityListView | TArrayView< FMassEntityHandle > | MassExecutionContext.h | ||
| EntityManager | TSharedRef< FMassEntityManager > | MassExecutionContext.h | ||
| ExecutionType | EMassExecutionContextType | MassExecutionContext.h | ||
| FMassArchetypeData | friend | MassExecutionContext.h | ||
| FragmentViews | TArray< FFragmentView, TInlineAllocator< 8 > > | MassExecutionContext.h | ||
| IteratorSerialNumberGenerator | uint32 | Track the serial number for FEntityIterator creation | MassExecutionContext.h | |
| QueriesStack | TArray< FQueryTransientRuntime, TInlineAllocator< 2 > > | We usually expect the queries to go only a single layer deep, so 2 elements here should suffice most of the time | MassExecutionContext.h | |
| SharedFragmentViews | TArray< FSharedFragmentView, TInlineAllocator< 4 > > | MassExecutionContext.h | ||
| SubsystemAccess | FMassSubsystemAccess | MassExecutionContext.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyFragmentRequirements
(
const FMassEntityQuery& RequestingQuery |
MassExecutionContext.h | ||
bool CacheSubsystemRequirements
(
const FMassSubsystemRequirements& SubsystemRequirements |
Processes SubsystemRequirements to fetch and cache all the indicated subsystems. | MassExecutionContext.h | |
void ClearEntityCollection() |
MassExecutionContext.h | ||
void ClearExecutionData() |
MassExecutionContext.h | ||
void ClearFragmentViews
(
const FMassEntityQuery& RequestingQuery |
MassExecutionContext.h | ||
| Creates an Entity Iterator for the current chunk. | MassExecutionContext.h | ||
FColor DebugGetArchetypeColor() |
MassExecutionContext.h | ||
const FString & DebugGetExecutionDesc() |
MassExecutionContext.h | ||
UMassProcessor * DebugGetProcessor() |
MassExecutionContext.h | ||
void DebugSetColor
(
FColor InColor |
MassExecutionContext.h | ||
void DebugSetExecutionDesc
(
FString&& Description |
MassExecutionContext.h | ||
void DebugSetExecutionDesc
(
const FString& Description |
MassExecutionContext.h | ||
void DebugSetProcessor
(
UMassProcessor* Processor |
MassExecutionContext.h | ||
FMassCommandBuffer & Defer() |
MassExecutionContext.h | ||
bool DoesArchetypeHaveFragment () |
MassExecutionContext.h | ||
bool DoesArchetypeHaveFragment
(
const UScriptStruct& FragmentType |
MassExecutionContext.h | ||
bool DoesArchetypeHaveTag
(
const UScriptStruct& TagType |
MassExecutionContext.h | ||
bool DoesArchetypeHaveTag () |
MassExecutionContext.h | ||
void FlushDeferred() |
MassExecutionContext.h | ||
void ForEachEntityInChunk
(
const FMassEntityExecuteFunction& EntityExecuteFunction |
MassExecutionContext.h | ||
const FInstancedStruct & GetAuxData() |
MassExecutionContext.h | ||
const T & GetChunkFragment() |
MassExecutionContext.h | ||
const T * GetChunkFragmentPtr() |
MassExecutionContext.h | ||
int32 GetChunkSerialModificationNumber() |
MassExecutionContext.h | ||
const T & GetConstSharedFragment() |
MassExecutionContext.h | ||
const T * GetConstSharedFragmentPtr () |
MassExecutionContext.h | ||
const void * GetConstSharedFragmentPtr
(
const UScriptStruct& SharedFragmentType |
Shared fragment related operations | MassExecutionContext.h | |
const FMassEntityQuery & GetCurrentQuery() |
MassExecutionContext.h | ||
float GetDeltaTimeSeconds() |
MassExecutionContext.h | ||
TConstArrayView< FMassEntityHandle > GetEntities() |
MassExecutionContext.h | ||
FMassEntityHandle GetEntity
(
const int32 Index |
MassExecutionContext.h | ||
const FMassArchetypeEntityCollection & GetEntityCollection() |
Sparse chunk related operation | MassExecutionContext.h | |
FMassEntityManager & GetEntityManagerChecked() |
Inlines. | MassExecutionContext.h | |
EMassExecutionContextType GetExecutionType() |
MassExecutionContext.h | ||
TConstArrayView< FMassFragment > GetFragmentView
(
const UScriptStruct* FragmentType |
MassExecutionContext.h | ||
TConstArrayView< TFragment > GetFragmentView () |
MassExecutionContext.h | ||
TConstArrayView< TFragmentBase > GetFragmentView
(
TNotNull< const UScriptStruct* > FragmentType |
MassExecutionContext.h | ||
FInstancedStruct & GetMutableAuxData() |
MassExecutionContext.h | ||
T & GetMutableChunkFragment() |
MassExecutionContext.h | ||
T * GetMutableChunkFragmentPtr() |
MassExecutionContext.h | ||
TArrayView< TFragment > GetMutableFragmentView () |
Fragments related operations | MassExecutionContext.h | |
TArrayView< TFragmentBase > GetMutableFragmentView
(
TNotNull< const UScriptStruct* > FragmentType |
MassExecutionContext.h | ||
TArrayView< FMassFragment > GetMutableFragmentView
(
const UScriptStruct* FragmentType |
MassExecutionContext.h | ||
T & GetMutableSharedFragment() |
MassExecutionContext.h | ||
T * GetMutableSharedFragmentPtr() |
MassExecutionContext.h | ||
T * GetMutableSubsystem () |
MassExecutionContext.h | ||
T * GetMutableSubsystem
(
const TSubclassOf< USubsystem > SubsystemClass |
MassExecutionContext.h | ||
T & GetMutableSubsystemChecked
(
const TSubclassOf< USubsystem > SubsystemClass |
MassExecutionContext.h | ||
T & GetMutableSubsystemChecked () |
MassExecutionContext.h | ||
int32 GetNumEntities() |
MassExecutionContext.h | ||
TSharedPtr< FMassCommandBuffer > GetSharedDeferredCommandBuffer() |
MassExecutionContext.h | ||
const TSharedRef< FMassEntityManager > & GetSharedEntityManager() |
MassExecutionContext.h | ||
const T & GetSharedFragment() |
MassExecutionContext.h | ||
const T * GetSharedFragmentPtr() |
MassExecutionContext.h | ||
const T * GetSubsystem
(
const TSubclassOf< USubsystem > SubsystemClass |
MassExecutionContext.h | ||
const T * GetSubsystem () |
MassExecutionContext.h | ||
const T & GetSubsystemChecked () |
MassExecutionContext.h | ||
const T & GetSubsystemChecked
(
const TSubclassOf< USubsystem > SubsystemClass |
MassExecutionContext.h | ||
UWorld * GetWorld() |
MassExecutionContext.h | ||
bool IsCurrentQuery
(
const FMassEntityQuery& Query |
MassExecutionContext.h | ||
void PopQuery
(
const FMassEntityQuery& InQuery |
MassExecutionContext.h | ||
void PushQuery
(
FMassEntityQuery& InQuery |
MassExecutionContext.h | ||
void SetAuxData
(
const FInstancedStruct& InAuxData |
MassExecutionContext.h | ||
void SetCurrentArchetypeCompositionDescriptor
(
const FMassArchetypeCompositionDescriptor& Descriptor |
MassExecutionContext.h | ||
void SetCurrentChunkSerialModificationNumber
(
const int32 SerialModificationNumber |
Chunk related operations | MassExecutionContext.h | |
void SetDeferredCommandBuffer
(
const TSharedPtr< FMassCommandBuffer >& InDeferredCommandBuffer |
MassExecutionContext.h | ||
void SetEntityCollection
(
const FMassArchetypeEntityCollection& InEntityCollection |
MassExecutionContext.h | ||
void SetEntityCollection
(
FMassArchetypeEntityCollection&& InEntityCollection |
MassExecutionContext.h | ||
void SetExecutionType
(
EMassExecutionContextType InExecutionType |
MassExecutionContext.h | ||
void SetFlushDeferredCommands
(
const bool bNewFlushDeferredCommands |
Sets bFlushDeferredCommands. | MassExecutionContext.h | |
bool ValidateAuxDataType() |
MassExecutionContext.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearFragmentViews () |
MassExecutionContext.h | ||
void SetFragmentRequirements
(
const FMassFragmentRequirements& FragmentRequirements |
MassExecutionContext.h | ||
void SetSubsystemRequirements
(
const FMassSubsystemRequirements& SubsystemRequirements |
MassExecutionContext.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FMassExecutionContext & GetDummyInstance() |
For internal use only, should never be exported as part of API | MassExecutionContext.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMassExecutionContext & operator=
(
const FMassExecutionContext& Other |
Note that this operator is private on purpose, used to simplify the implementation of constructors. | MassExecutionContext.h |