FMassObserverManager

A type that encapsulates logic related to notifying interested parties of entity composition changes.

Choose your operating system:

Windows

macOS

Linux

References

Module

MassEntity

Header

/Engine/Plugins/Runtime/MassEntity/Source/MassEntity/Public/MassObserverManager.h

Include

#include "MassObserverManager.h"

Syntax

USTRUCT()
struct FMassObserverManager

Remarks

A type that encapsulates logic related to notifying interested parties of entity composition changes. Upon creation it reads information from UMassObserverRegistry and instantiates processors interested in handling given fragment type addition or removal.

Variables

Constructors

Functions

Name Description

Public function Const

const FMassF...

 

GetObservedAddFragmentsBitSet()

Public function Const

const FMassF...

 

GetObservedRemoveFragmentsBitSet()

Public function

FOnObservedF...

 

GetOnObservedFragmentTypesChangedDelegate()

Protected function

void

 

HandleFragmentsImpl

(
    FMassProcessingContext& Processing...,
    const FArchetypeChunkCollection& C...,
    const FMassFragmentBitSet& Fragmen...,
    TMap< const UScriptStruct*, FM...
)

Protected function

void

 

HandleSingleFragmentImpl

(
    const UScriptStruct& FragmentType,
    const FArchetypeChunkCollection& C...,
    const FMassFragmentBitSet& Fragmen...,
    TMap< const UScriptStruct*, FM...
)

Public function Const

bool

 

HasOnAddedObserversForFragments

(
    const FMassFragmentBitSet& InQueri...
)

Public function Const

bool

 

HasOnRemovedObserversForFragments

(
    const FMassFragmentBitSet& InQueri...
)

Protected function

void

 

Initialize()

Public function

bool

 

OnPostCompositionAdded

(
    const FMassEntityHandle Entity,
    const FMassArchetypeCompositionDesc...
)

Public function

bool

 

OnPostEntitiesCreated

(
    const FArchetypeChunkCollection& C...
)

Public function

bool

 

OnPostEntitiesCreated

(
    FMassProcessingContext& Processing...,
    const FArchetypeChunkCollection& C...
)

Public function

void

 

OnPostFragmentAdded

(
    const UScriptStruct& FragmentType,
    const FArchetypeChunkCollection& C...
)

Public function

bool

 

OnPreCompositionRemoved

(
    const FMassEntityHandle Entity,
    const FMassArchetypeCompositionDesc...
)

Public function

bool

 

OnPreEntitiesDestroyed

(
    const FArchetypeChunkCollection& C...
)

Public function

bool

 

OnPreEntitiesDestroyed

(
    FMassProcessingContext& Processing...,
    const FArchetypeChunkCollection& C...
)

Public function

void

 

OnPreFragmentRemoved

(
    const UScriptStruct& FragmentType,
    const FArchetypeChunkCollection& C...
)

Typedefs