Navigation
API > API/Runtime > API/Runtime/MassEntity
A dedicated structure for ensuring the "on entities creation" observers get notified only once all other initialization operations are done and this creation context instance gets released.
| Name | FCreationContext |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassObserverNotificationTypes.h |
| Include Path | #include "MassObserverNotificationTypes.h" |
Syntax
struct FCreationContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCreationContext
(
const TSharedRef< FObserverLock >& InLock |
MassObserverNotificationTypes.h | ||
FCreationContext
(
TSharedRef< FObserverLock >&& InLock |
MassObserverNotificationTypes.h | ||
FCreationContext
(
const int32 |
MassObserverNotificationTypes.h | ||
| MassObserverNotificationTypes.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FCreationContext() |
MassObserverNotificationTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CreationHandle | FCreationNotificationHandle | MassObserverNotificationTypes.h | ||
| FMassObserverManager | friend | MassObserverNotificationTypes.h | ||
| Lock | TSharedRef< FObserverLock > | MassObserverNotificationTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AppendEntities
(
const TConstArrayView< FMassEntityHandle >, |
MassObserverNotificationTypes.h | ||
void AppendEntities
(
const TConstArrayView< FMassEntityHandle > |
MassObserverNotificationTypes.h | ||
| Function for debugging/testing purposes. | MassObserverNotificationTypes.h | ||
const FMassArchetypeEntityCollection & GetEntityCollection() |
MassObserverNotificationTypes.h | ||
TArray< FMassArchetypeEntityCollection > GetEntityCollections
(
const FMassEntityManager& EntityManager |
MassObserverNotificationTypes.h | ||
TConstArrayView< FMassArchetypeEntityCollection > GetEntityCollections () |
MassObserverNotificationTypes.h | ||
int32 GetSpawnedNum() |
MassObserverNotificationTypes.h | ||
bool IsDirty() |
MassObserverNotificationTypes.h | ||
void MarkDirty() |
Called in response to composition mutating operation - these operations invalidate stored collections | MassObserverNotificationTypes.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedRef< FCreationContext > DebugCreateDummyCreationContext() |
MassObserverNotificationTypes.h |