Navigation
API > API/Plugins > API/Plugins/MassSpawner
References
| Module | MassSpawner |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassEntityTemplate.h |
| Include | #include "MassEntityTemplate.h" |
Syntax
USTRUCT ()
struct FMassEntityTemplateData
Remarks
Serves as data used to define and build finalized FMassEntityTemplate instances. Describes composition and initial values of fragments for entities created with this data, and lets users modify and extend the data. Once finalized as FMassEntityTemplate the data will become immutable.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FMassArchetypeCompositionDescriptor | Composition | ||
| FMassArchetypeCreationParams | CreationParams | ||
| TArray< FInstancedStruct > | InitialFragmentValues | Initial fragment values, this is not part of the archetype as it is the spawner job to set them. | |
| TArray< FObjectFragmentInitializerFunction > | ObjectInitializers | These functions will be called to initialize entity's UObject-based fragments. | |
| FMassArchetypeSharedFragmentValues | SharedFragmentValues | ||
| FString | TemplateName |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMassEntityTemplateData
(
const FMassEntityTemplate& InFinalizedTemplate |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | AddConstSharedFragment
(
const FConstSharedStruct& SharedFragment |
||
| void | AddFragment
(
FConstStructView Fragment |
||
| void | AddFragment
(
const UScriptStruct& FragmentType |
||
| void | AddFragment () |
||
| T & | |||
| void | AddSharedFragment
(
const FSharedStruct& SharedFragment |
||
| void | AddTag
(
const UScriptStruct& TagType |
||
| void | AddTag () |
||
| FMassArchetypeCreationParams & | |||
| const FMassArchetypeCompositionDescriptor & | |||
| TConstArrayView< FInstancedStruct > | |||
| T * | |||
| TArray< FMassEntityTemplateData::FObjectFragmentInitializerFunction > & | |||
| FMassTagBitSet & | |||
| TConstArrayView< FObjectFragmentInitializerFunction > | |||
| const FMassArchetypeSharedFragmentValues & | |||
| const FMassTagBitSet & | GetTags () |
||
| const FString & | |||
| bool | |||
| bool | HasFragment
(
const UScriptStruct& ScriptStruct |
||
| bool | HasFragment () |
||
| bool | HasSharedFragment
(
const UScriptStruct& ScriptStruct |
||
| bool | |||
| bool | HasTag () |
||
| bool | IsEmpty () |
||
| void | RemoveTag () |
||
| void | RemoveTag
(
const UScriptStruct& TagType |
||
| void | SetTemplateName
(
const FString& Name |
||
| bool | SlowIsEquivalent
(
const FMassEntityTemplateData& Other |
Compares contents of two archetypes (this and Other). | |
| void | Sort () |
Typedefs
| Name | Description |
|---|---|
| FObjectFragmentInitializerFunction |