UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMassDeferredCommand< OpType > Struct Template Reference

#include <MassCommands.h>

+ Inheritance diagram for FMassDeferredCommand< OpType >:

Public Types

using Super = FMassBatchedCommand
 
using FExecFunction = TFunction< void(FMassEntityManager &EntityManager)>
 

Public Member Functions

 FMassDeferredCommand ()
 
void Add (FExecFunction &&ExecFunction)
 
void Add (const FExecFunction &ExecFunction)
 
- 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
 
virtual void Run (FMassEntityManager &EntityManager) override
 
virtual void Reset () override
 

Protected Attributes

TArray< FExecFunctionDeferredFunctions
 
- 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 ()
 

Member Typedef Documentation

◆ FExecFunction

template<EMassCommandOperationType OpType>
using FMassDeferredCommand< OpType >::FExecFunction = TFunction<void(FMassEntityManager& EntityManager)>

◆ Super

template<EMassCommandOperationType OpType>
using FMassDeferredCommand< OpType >::Super = FMassBatchedCommand

Constructor & Destructor Documentation

◆ FMassDeferredCommand()

Member Function Documentation

◆ Add() [1/2]

template<EMassCommandOperationType OpType>
void FMassDeferredCommand< OpType >::Add ( const FExecFunction ExecFunction)
inline

◆ Add() [2/2]

template<EMassCommandOperationType OpType>
void FMassDeferredCommand< OpType >::Add ( FExecFunction &&  ExecFunction)
inline

◆ GetAllocatedSize()

template<EMassCommandOperationType OpType>
virtual SIZE_T FMassDeferredCommand< OpType >::GetAllocatedSize ( ) const
inlineprotectedvirtual

Implements FMassBatchedCommand.

◆ Reset()

template<EMassCommandOperationType OpType>
virtual void FMassDeferredCommand< OpType >::Reset ( )
inlineoverrideprotectedvirtual

Reimplemented from FMassBatchedCommand.

◆ Run()

template<EMassCommandOperationType OpType>
virtual void FMassDeferredCommand< OpType >::Run ( FMassEntityManager EntityManager)
inlineoverrideprotectedvirtual

Reimplemented from FMassBatchedCommand.

Member Data Documentation

◆ DeferredFunctions

template<EMassCommandOperationType OpType>
TArray<FExecFunction> FMassDeferredCommand< OpType >::DeferredFunctions
protected

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