Navigation
API > API/Plugins > API/Plugins/MassSpawner
Represents a repository storing all the FMassEntityTemplate that have been created and registered as part of FMassEntityConfig processing or via custom code (like we do in InstancedActors plugin).
| Name | FMassEntityTemplateRegistry |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassEntityTemplateRegistry.h |
| Include Path | #include "MassEntityTemplateRegistry.h" |
Syntax
struct FMassEntityTemplateRegistry
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMassEntityTemplateRegistry
(
UObject* InOwner |
MassEntityTemplateRegistry.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FStructToTemplateBuilderDelegate | TBaseDelegate_ThreeParams< void, const UWorld *, const FConstStructView, FMassEntityTemplateBuildContext & > | MassEntityTemplateRegistry.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| StructBasedBuilders | TMap< const UScriptStruct *, FStructToTemplateBuilderDelegate > | MassEntityTemplateRegistry.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DebugReset() |
Removes all the cached template instances | MassEntityTemplateRegistry.h | |
void DestroyTemplate
(
FMassEntityTemplateID TemplateID |
MassEntityTemplateRegistry.h | ||
const TSharedRef< FMassEntityTemplate > & FindOrAddTemplate
(
FMassEntityTemplateID TemplateID, |
Adds a template based on TemplateData | MassEntityTemplateRegistry.h | |
const TSharedRef< FMassEntityTemplate > * FindTemplateFromTemplateID
(
FMassEntityTemplateID TemplateID |
MassEntityTemplateRegistry.h | ||
FMassEntityManager & GetEntityManagerChecked() |
MassEntityTemplateRegistry.h | ||
UWorld * GetWorld() |
MassEntityTemplateRegistry.h | ||
void Initialize
(
const TSharedPtr< FMassEntityManager >& InEntityManager |
Initializes and stores the EntityManager the templates will be associated with. | MassEntityTemplateRegistry.h | |
void ShutDown() |
MassEntityTemplateRegistry.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FStructToTemplateBuilderDelegate & FindOrAdd
(
const UScriptStruct& DataType |
MassEntityTemplateRegistry.h |