Navigation
API > API/Plugins > API/Plugins/MassSpawner
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.
| Name | FMassEntityTemplateData |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassEntityTemplate.h |
| Include Path | #include "MassEntityTemplate.h" |
Syntax
USTRUCT ()
struct FMassEntityTemplateData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMassEntityTemplateData
(
const FMassEntityTemplate& InFinalizedTemplate |
MassEntityTemplate.h | ||
| MassEntityTemplate.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FObjectFragmentInitializerFunction | TFunction< void(UObject &, FMassEntityView &, const EMassTranslationDirection)> | MassEntityTemplate.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddChunkFragment() |
MassEntityTemplate.h | ||
void AddConstSharedFragment
(
const FConstSharedStruct& SharedFragment |
MassEntityTemplate.h | ||
void AddFragment
(
FConstStructView Fragment |
MassEntityTemplate.h | ||
void AddFragment
(
const UScriptStruct& FragmentType |
MassEntityTemplate.h | ||
void AddFragment () |
MassEntityTemplate.h | ||
T & AddFragment_GetRef() |
MassEntityTemplate.h | ||
void AddSharedFragment
(
const FSharedStruct& SharedFragment |
MassEntityTemplate.h | ||
void AddTag
(
const UScriptStruct& TagType |
MassEntityTemplate.h | ||
void AddTag () |
MassEntityTemplate.h | ||
UE::Mass::FEntityBuilder CreateEntityBuilder
(
const TSharedRef< FMassEntityManager >& InEntityManager |
MassEntityTemplate.h | ||
FMassArchetypeCreationParams & GetArchetypeCreationParams() |
MassEntityTemplate.h | ||
const FMassArchetypeCompositionDescriptor & GetCompositionDescriptor() |
MassEntityTemplate.h | ||
TConstArrayView< FInstancedStruct > GetInitialFragmentValues() |
MassEntityTemplate.h | ||
T * GetMutableFragment() |
MassEntityTemplate.h | ||
TArray< FMassEntityTemplateData::FObjectFragmentInitializerFunction > & GetMutableObjectFragmentInitializers() |
MassEntityTemplate.h | ||
FMassTagBitSet & GetMutableTags() |
MassEntityTemplate.h | ||
TConstArrayView< FObjectFragmentInitializerFunction > GetObjectFragmentInitializers() |
MassEntityTemplate.h | ||
const FMassArchetypeSharedFragmentValues & GetSharedFragmentValues() |
MassEntityTemplate.h | ||
const FMassTagBitSet & GetTags() |
MassEntityTemplate.h | ||
const FString & GetTemplateName() |
MassEntityTemplate.h | ||
bool HasChunkFragment() |
MassEntityTemplate.h | ||
bool HasConstSharedFragment () |
MassEntityTemplate.h | ||
bool HasConstSharedFragment
(
const UScriptStruct& ScriptStruct |
MassEntityTemplate.h | ||
bool HasFragment
(
const UScriptStruct& ScriptStruct |
MassEntityTemplate.h | ||
bool HasFragment () |
MassEntityTemplate.h | ||
bool HasSharedFragment () |
MassEntityTemplate.h | ||
bool HasSharedFragment
(
const UScriptStruct& ScriptStruct |
MassEntityTemplate.h | ||
bool HasTag() |
MassEntityTemplate.h | ||
bool IsEmpty() |
INLINES. | MassEntityTemplate.h | |
void RemoveTag () |
MassEntityTemplate.h | ||
void RemoveTag
(
const UScriptStruct& TagType |
MassEntityTemplate.h | ||
void SetTemplateName
(
const FString& Name |
MassEntityTemplate.h | ||
bool SlowIsEquivalent
(
const FMassEntityTemplateData& Other |
Compares contents of two archetypes (this and Other). | MassEntityTemplate.h | |
void Sort() |
MassEntityTemplate.h |