![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MassArchetypeTypes.h>
Classes | |
| struct | FArchetypeEntityRange |
Public Types | |
| enum | EDuplicatesHandling { NoDuplicates , FoldDuplicates } |
| enum | EInitializationType { GatherAll , DoNothing } |
| using | FEntityRangeArray = TArray< FArchetypeEntityRange > |
| using | FConstEntityRangeArrayView = TConstArrayView< FArchetypeEntityRange > |
Static Public Member Functions | |
| static UE_API bool | DoesContainOverlappingRanges (FConstEntityRangeArrayView Ranges) |
Protected Member Functions | |
| UE_API void | BuildEntityRanges (TStridedView< const int32 > TrueIndices) |
Static Protected Member Functions | |
| static UE_API FArchetypeEntityRange | CreateRangeForEntity (const FMassArchetypeHandle &InArchetype, const FMassEntityHandle EntityHandle) |
Friends | |
| struct | FMassArchetypeEntityCollectionWithPayload |
A struct that converts an arbitrary array of entities of given Archetype into a sequence of continuous entity chunks. The goal is to have the user create an instance of this struct once and run through a bunch of systems. The runtime code usually uses FMassArchetypeChunkIterator to iterate on the chunk collection.
| using FMassArchetypeEntityCollection::FConstEntityRangeArrayView = TConstArrayView<FArchetypeEntityRange> |
|
default |
| FMassArchetypeEntityCollection::FMassArchetypeEntityCollection | ( | const FMassArchetypeHandle & | InArchetype, |
| TConstArrayView< FMassEntityHandle > | InEntities, | ||
| EDuplicatesHandling | DuplicatesHandling | ||
| ) |
| FMassArchetypeEntityCollection::FMassArchetypeEntityCollection | ( | const FMassArchetypeHandle & | InArchetype, |
| const FMassEntityHandle | EntityHandle | ||
| ) |
optimized, special case for a single-entity
| FMassArchetypeEntityCollection::FMassArchetypeEntityCollection | ( | FMassArchetypeHandle && | InArchetype, |
| const FMassEntityHandle | EntityHandle | ||
| ) |
|
explicit |
|
explicit |
|
inline |
| void FMassArchetypeEntityCollection::Append | ( | T && | Other | ) |
Appends ranges of the given FMassArchetypeEntityCollection instance. Note that it can be safely done only when both collections host entities of the same archetype, and both were created with the same version of said archetype. Additionally, we don't expect the operation to produce overlapping entity ranges and this assumption is only verified in debug builds (i.e. use it only when you're certain no range overlaps are possible).
|
protected |
|
staticprotected |
|
static |
| bool FMassArchetypeEntityCollection::ExportEntityHandles | ( | TArray< FMassEntityHandle > & | InOutHandles | ) | const |
Converts stored entity ranges to FMassEntityHandles and appends them to InOutHandles. Note that the operation is only supported for already created entities (i.e. not "reserved")
|
inline |
|
inline |
|
inline |
| bool FMassArchetypeEntityCollection::IsSame | ( | const FMassArchetypeEntityCollection & | Other | ) | const |
The comparison function that checks if Other is identical to this. Intended for diagnostics/debugging.
|
inline |
|
inline |
|
inline |
|
inline |