Navigation
API > API/Plugins > API/Plugins/MassSpawner
References
| Module | MassSpawner |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassEntityTemplateRegistry.h |
| Include | #include "MassEntityTemplateRegistry.h" |
Syntax
struct FMassEntityTemplateRegistry
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< FMassEntityManager > | EntityManager | EntityManager the hosted templates are associated with. | |
| TWeakObjectPtr< UObject > | Owner | ||
| TMap< FMassEntityTemplateID, TSharedRef< FMassEntityTemplate > > | TemplateIDToTemplateMap |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMassEntityTemplateRegistry
(
UObject* InOwner |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DebugReset () |
Removes all the cached template instances | |
| void | DestroyTemplate
(
FMassEntityTemplateID TemplateID |
||
| FStructToTemplateBuilderDelegate & | FindOrAdd
(
const UScriptStruct& DataType |
||
| const TSharedRef< FMassEntityTemplate > & | FindOrAddTemplate
(
FMassEntityTemplateID TemplateID, |
Adds a template based on TemplateData | |
| const TSharedRef< FMassEntityTemplate > * | FindTemplateFromTemplateID
(
FMassEntityTemplateID TemplateID |
||
| FMassEntityManager & | |||
| UWorld * | GetWorld () |
||
| void | Initialize
(
const TSharedPtr< FMassEntityManager >& InEntityManager |
Initializes and stores the EntityManager the templates will be associated with. | |
| void | ShutDown () |
Typedefs
| Name | Description |
|---|---|
| FStructToTemplateBuilderDelegate |
Constants
| Name | Description |
|---|---|
| StructBasedBuilders |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| FMassEntityTemplate & | CreateTemplate
(
const uint32 HashLookup, |
CreateTemplate is no longer available. Use AddTemplate instead. | |
| FMassEntityTemplate * | FindMutableTemplateFromTemplateID
(
FMassEntityTemplateID TemplateID |
We no longer support fething mutable templates from the TemplateRegistry. Stored templates are considered const. | |
| void | InitializeEntityTemplate
(
FMassEntityTemplate& InOutTemplate |
InitializeEntityTemplate is no longer available. Use AddTemplate instead. |