![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MassEntityTypes.h>
Friends | |
| uint32 | GetTypeHash (const FMassArchetypeSharedFragmentValues &SharedFragmentValues) |
Wrapper for const and non-const shared fragment containers that tracks which struct types it holds (via a FMassSharedFragmentBitSet). Note that having multiple instanced of a given struct type is not supported and Add* functions will fetch the previously added fragment instead of adding a new one.
|
default |
|
default |
|
default |
|
inline |
Adds Fragment to the collection. Method will ensure if a fragment of the given FMassConstSharedFragment subclass has already been added.
|
inline |
Adds Fragment to the collection. Method will ensure if a fragment of the given FMassSharedFragment subclass has already been added.
| PRAGMA_ENABLE_DEPRECATION_WARNINGS FConstSharedStruct FMassArchetypeSharedFragmentValues::Add_GetRef | ( | const FConstSharedStruct & | Fragment | ) |
Adds Fragment to the collection. Method will ensure if a fragment of the given FMassConstSharedFragment subclass has already been added. In that case the method will return the previously added instance if the given type has been added as a CONST shared fragment and if not it will return an empty FConstSharedStruct.
| FSharedStruct FMassArchetypeSharedFragmentValues::Add_GetRef | ( | const FSharedStruct & | Fragment | ) |
Adds Fragment to the collection. Method will ensure if a fragment of the given FMassSharedFragment subclass has already been added. In that case the method will return the previously added instance if the given type has been added as a NON-CONST shared fragment and if not it will return an empty FSharedStruct.
|
inline |
|
inline |
| int32 FMassArchetypeSharedFragmentValues::Append | ( | const FMassArchetypeSharedFragmentValues & | Other | ) |
Appends contents of Other to this instance. All common fragments will get overridden with values in Other. Note that changing a fragments "role" (being const or non-const) is not supported and the function will fail an ensure when that is attempted.
|
inline |
| uint32 FMassArchetypeSharedFragmentValues::CalculateHash | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool FMassArchetypeSharedFragmentValues::HasSameValues | ( | const FMassArchetypeSharedFragmentValues & | Other | ) | const |
Compares contents of this and the Other, and allows different order of elements in both containers. Note that the function ignores "nulls", i.e. empty FConstSharedStruct and FSharedStruct instances. The function does care however about matching "mode", meaning ConstSharedFragments and SharedFragments arrays are compared independently.
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
Remove all the shared and const shared fragments indicated by InDescriptor
| int32 FMassArchetypeSharedFragmentValues::Remove | ( | const FMassConstSharedFragmentBitSet & | ConstSharedFragmentToRemoveBitSet | ) |
Note that the function removes the const shared fragments by type
| int32 FMassArchetypeSharedFragmentValues::Remove | ( | const FMassSharedFragmentBitSet & | SharedFragmentToRemoveBitSet | ) |
Note that the function removes the shared fragments by type
| void FMassArchetypeSharedFragmentValues::ReplaceSharedFragments | ( | TConstArrayView< FSharedStruct > | Fragments | ) |
Finds instances of fragment types given by Fragments and replaces their values with contents of respective element of Fragments. Note that it's callers responsibility to ensure every fragment type in Fragments already has an instance in this FMassArchetypeSharedFragmentValues instance. Failing that assumption will result in ensure failure.
|
inline |
|
inline |
|
friend |
We consider empty FMassArchetypeSharedFragmentValues a sorted container.Same goes for a container containing a single element,
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |