UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMassCommandBuildEntityWithSharedFragments< TSharedFragmentValues, TOthers > Struct Template Reference

#include <MassCommands.h>

+ Inheritance diagram for FMassCommandBuildEntityWithSharedFragments< TSharedFragmentValues, TOthers >:

Classes

struct  FPerSharedFragmentsHashData
 

Public Types

using Super = FMassBatchedCommand
 

Public Member Functions

 FMassCommandBuildEntityWithSharedFragments ()
 
void Add (FMassEntityHandle Entity, FMassArchetypeSharedFragmentValues &&InSharedFragments, TOthers... InFragments)
 
- Public Member Functions inherited from FMassBatchedCommand
 FMassBatchedCommand ()=default
 
 FMassBatchedCommand (EMassCommandOperationType OperationType)
 
virtual ~FMassBatchedCommand ()
 
virtual void Execute (FMassEntityManager &EntityManager) const
 
bool HasWork () const
 
EMassCommandOperationType GetOperationType () const
 

Protected Member Functions

virtual SIZE_T GetAllocatedSize () const override
 
virtual void Run (FMassEntityManager &EntityManager) override
 
virtual void Reset () override
 

Protected Attributes

FMassFragmentBitSet FragmentsAffected
 
TMap< uint32, FPerSharedFragmentsHashDataData
 
- Protected Attributes inherited from FMassBatchedCommand
bool bHasWork = false
 
EMassCommandOperationType OperationType = EMassCommandOperationType::None
 

Additional Inherited Members

- Static Public Member Functions inherited from FMassBatchedCommand
template<typename T >
static UE_AUTORTFM_ALWAYS_OPEN uint32 GetCommandIndex ()
 

Detailed Description

template<typename TSharedFragmentValues, typename... TOthers>
struct FMassCommandBuildEntityWithSharedFragments< TSharedFragmentValues, TOthers >

Note: that TSharedFragmentValues is always expected to be FMassArchetypeSharedFragmentValues, but is declared as template's param to maintain uniform command adding interface via FMassCommandBuffer.PushCommand. PushCommands received all input params in one typename... list and as such cannot be easily split up to reason about.

Member Typedef Documentation

◆ Super

Constructor & Destructor Documentation

◆ FMassCommandBuildEntityWithSharedFragments()

Member Function Documentation

◆ Add()

template<typename TSharedFragmentValues , typename... TOthers>
void FMassCommandBuildEntityWithSharedFragments< TSharedFragmentValues, TOthers >::Add ( FMassEntityHandle  Entity,
FMassArchetypeSharedFragmentValues &&  InSharedFragments,
TOthers...  InFragments 
)
inline

◆ GetAllocatedSize()

template<typename TSharedFragmentValues , typename... TOthers>
virtual SIZE_T FMassCommandBuildEntityWithSharedFragments< TSharedFragmentValues, TOthers >::GetAllocatedSize ( ) const
inlineoverrideprotectedvirtual

Implements FMassBatchedCommand.

◆ Reset()

template<typename TSharedFragmentValues , typename... TOthers>
virtual void FMassCommandBuildEntityWithSharedFragments< TSharedFragmentValues, TOthers >::Reset ( )
inlineoverrideprotectedvirtual

Reimplemented from FMassBatchedCommand.

◆ Run()

template<typename TSharedFragmentValues , typename... TOthers>
virtual void FMassCommandBuildEntityWithSharedFragments< TSharedFragmentValues, TOthers >::Run ( FMassEntityManager EntityManager)
inlineoverrideprotectedvirtual

Reimplemented from FMassBatchedCommand.

Member Data Documentation

◆ Data

◆ FragmentsAffected


The documentation for this struct was generated from the following file: