UMassCrowdRepresentationProcessor

Overridden representation processor to make it tied to the crowd via the requirements.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MassCrowd

Header

/Engine/Plugins/AI/MassCrowd/Source/MassCrowd/Public/MassCrowdRepresentationProcessor.h

Include

#include "MassCrowdRepresentationProcessor.h"

Syntax

UCLASS(Abstract)
class UMassCrowdRepresentationProcessor : public UMassRepresentationProcessor

Remarks

Overridden representation processor to make it tied to the crowd via the requirements. It is also the base class for all the different type of crowd representation (Visualization & ServerSideRepresentation)

Variables

Name Description

Protected variable

FMassEntityQuer...

 

CharacterMovementEntitiesQuery_Conditional

A dedicated query for processing entities owning a FDataFragment_CharacterMovementComponentWrapper

Constructors

Overridden from UMassRepresentationProcessor

Name Description

Protected function Virtual

void

 

ConfigureQueries()

Configure the owned FMassEntityQuery instances to express processor's requirements

Protected function Virtual

AActor *

 

GetOrSpawnActor

(
    const FMassEntityHandle MassAgent,
    FDataFragment_Actor& ActorInfo,
    const FTransform& Transform,
    const int16 TemplateActorIndex,
    FMassActorSpawnRequestHandle& Spaw...,
    const float Priority
)

Returns an actor of the template type and setup fragments values from it

Protected function Virtual

void

 

SetActorEnabled

(
    const EActorEnabledType EnabledType,
    AActor& Actor,
    const int32 EntityIdx,
    FMassCommandBuffer& CommandBuffer
)

Enable/disable a spawned actor

Protected function Virtual

void

 

TeleportActor

(
    const FTransform& Transform,
    AActor& Actor,
    FMassCommandBuffer& CommandBuffer
)

Teleports the actor at the specified transform by preserving its velocity and without collision.

Overridden from UMassProcessor

Name Description

Protected function Virtual

void

 

Initialize

(
    UObject& Owner
)

Initialization of this processor