Navigation
API > API/Runtime > API/Runtime/MassEntity
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.
| Name | FMassArchetypeSharedFragmentValues |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityTypes.h |
| Include Path | #include "MassEntityTypes.h" |
Syntax
struct FMassArchetypeSharedFragmentValues
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| MassEntityTypes.h | |||
FMassArchetypeSharedFragmentValues
(
const FMassArchetypeSharedFragmentValues& OtherFragmentValues |
MassEntityTypes.h | ||
FMassArchetypeSharedFragmentValues
(
FMassArchetypeSharedFragmentValues&& OtherFragmentValues |
MassEntityTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
const FSharedStruct& Fragment |
Adds Fragment to the collection. | MassEntityTypes.h | |
void Add
(
const FConstSharedStruct& Fragment |
Adds Fragment to the collection. | MassEntityTypes.h | |
FSharedStruct Add_GetRef
(
const FSharedStruct& Fragment |
Adds Fragment to the collection. | MassEntityTypes.h | |
FConstSharedStruct Add_GetRef
(
const FConstSharedStruct& Fragment |
Adds Fragment to the collection. | MassEntityTypes.h | |
FConstSharedStruct AddConstSharedFragment
(
const FConstSharedStruct& Fragment |
MassEntityTypes.h | ||
FSharedStruct AddSharedFragment
(
const FSharedStruct& Fragment |
MassEntityTypes.h | ||
int32 Append
(
const FMassArchetypeSharedFragmentValues& Other |
Appends contents of Other to `this_ instance. | MassEntityTypes.h | |
void CacheHash() |
MassEntityTypes.h | ||
uint32 CalculateHash() |
MassEntityTypes.h | ||
bool ContainsType
(
const UScriptStruct* FragmentType |
MassEntityTypes.h | ||
bool ContainsType () |
MassEntityTypes.h | ||
void DirtyHashCache() |
MassEntityTypes.h | ||
bool DoesMatchComposition
(
const FMassArchetypeCompositionDescriptor& InDescriptor |
MassEntityTypes.h | ||
SIZE_T GetAllocatedSize() |
MassEntityTypes.h | ||
const FMassConstSharedFragmentBitSet & GetConstSharedFragmentBitSet() |
MassEntityTypes.h | ||
const TArray< FConstSharedStruct > & GetConstSharedFragments() |
MassEntityTypes.h | ||
FConstSharedStruct GetConstSharedFragmentStruct
(
const UScriptStruct* StructType |
MassEntityTypes.h | ||
TArray< FSharedStruct > & GetMutableSharedFragments() |
MassEntityTypes.h | ||
const FMassSharedFragmentBitSet & GetSharedFragmentBitSet() |
MassEntityTypes.h | ||
const TArray< FSharedStruct > & GetSharedFragments() |
MassEntityTypes.h | ||
FSharedStruct GetSharedFragmentStruct
(
const UScriptStruct* StructType |
MassEntityTypes.h | ||
FConstSharedStruct GetSharedFragmentStruct
(
const UScriptStruct* StructType |
MassEntityTypes.h | ||
bool HasAllRequiredConstSharedFragmentTypes
(
const FMassConstSharedFragmentBitSet& InConstSharedFragmentBitSet |
MassEntityTypes.h | ||
bool HasAllRequiredSharedFragmentTypes
(
const FMassSharedFragmentBitSet& InSharedFragmentBitSet |
MassEntityTypes.h | ||
bool HasExactConstSharedFragmentTypesMatch
(
const FMassConstSharedFragmentBitSet& InConstSharedFragmentBitSet |
MassEntityTypes.h | ||
bool HasExactFragmentTypesMatch
(
const FMassSharedFragmentBitSet& InSharedFragmentBitSet |
DEPRECATED. | MassEntityTypes.h | |
bool HasExactFragmentTypesMatch
(
const FMassSharedFragmentBitSet& InSharedFragmentBitSet, |
MassEntityTypes.h | ||
bool HasExactSharedFragmentTypesMatch
(
const FMassSharedFragmentBitSet& InSharedFragmentBitSet |
MassEntityTypes.h | ||
bool HasSameValues
(
const FMassArchetypeSharedFragmentValues& Other |
Compares contents of `this_ and the Other, and allows different order of elements in both containers. | MassEntityTypes.h | |
bool IsEmpty() |
MassEntityTypes.h | ||
bool IsEquivalent
(
const FMassArchetypeSharedFragmentValues& OtherSharedFragmentValues |
MassEntityTypes.h | ||
bool IsSorted() |
MassEntityTypes.h | ||
int32 Remove
(
const FMassConstSharedFragmentBitSet& ConstSharedFragmentToRemoveBitSet |
Note that the function removes the const shared fragments by type | MassEntityTypes.h | |
int32 Remove
(
const FMassSharedFragmentBitSet& SharedFragmentToRemoveBitSet |
Note that the function removes the shared fragments by type | MassEntityTypes.h | |
int32 Remove
(
const FMassArchetypeCompositionDescriptor& InDescriptor |
Remove all the shared and const shared fragments indicated by InDescriptor | MassEntityTypes.h | |
void ReplaceSharedFragments
(
TConstArrayView< FSharedStruct > Fragments |
Finds instances of fragment types given by Fragments and replaces their values with contents of respective element of Fragments. | MassEntityTypes.h | |
void Reset() |
MassEntityTypes.h | ||
void Sort() |
MassEntityTypes.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMassArchetypeSharedFragmentValues & operator=
(
const FMassArchetypeSharedFragmentValues& OtherFragmentValues |
MassEntityTypes.h | ||
FMassArchetypeSharedFragmentValues & operator=
(
FMassArchetypeSharedFragmentValues&& OtherFragmentValues |
MassEntityTypes.h |