Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassEntityManager
This is a struct wrapping shared fragment management to ensure consistency between how shared and const shared fragment are added and fetched, across all the functions that do that
| Name | TSharedFragmentsContainer |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityManager.h |
| Include Path | #include "MassEntityManager.h" |
Syntax
template<typename TSharedStructType>
struct TSharedFragmentsContainer
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HashToInstanceIndexMap | TMultiMap< uint32, int32 > | Hash/Index in array pair. | MassEntityManager.h | |
| Instances | TArray< TSharedStructType > | MassEntityManager.h | ||
| TypeToInstanceMap | TMap< const UScriptStruct *, TArray< TSharedStructType > > | Maps specific struct type to a collection of FSharedStruct instances of that type. | MassEntityManager.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArray< TSharedStructType > * Find
(
const UScriptStruct* Type |
MassEntityManager.h | ||
TSharedStructType & FindOrAdd
(
const uint32 Hash, |
MassEntityManager.h | ||
TSharedStructType & FindOrAdd
(
const uint32 Hash, |
MassEntityManager.h | ||
TArrayView< TSharedStructType > GetAllInstances() |
MassEntityManager.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedStructType & operator[]
(
const int32 Index |
MassEntityManager.h |