Navigation
API > API/Plugins > API/Plugins/MassSpawner > API/Plugins/MassSpawner/UMassEntityTraitBase
This is a type wrapping an existing TArray to limit how users can interact with the contained data. We essentially limit users to just adding elements, no other operations.
| Name | FAdditionalTraitRequirements |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassEntityTraitBase.h |
| Include Path | #include "MassEntityTraitBase.h" |
Syntax
struct FAdditionalTraitRequirements
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAdditionalTraitRequirements
(
TArray< const UStruct* >& InTargetContainer |
MassEntityTraitBase.h | ||
| Copying constructor and assignment deleted to prevent users storing copies of the type, which wouldn't be safe due to this type hosting a reference to an array that can go out of scope. | MassEntityTraitBase.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| TargetContainer | TArray< const UStruct * > & | MassEntityTraitBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAdditionalTraitRequirements & Add
(
const UScriptStruct* RequiredType |
MassEntityTraitBase.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAdditionalTraitRequirements & operator=
(
const FAdditionalTraitRequirements& |
MassEntityTraitBase.h |