FArchetypeChunkCollection

A struct that converts an arbitrary array of entities of given Archetype into a sequence of continuous entity chunks.

Choose your operating system:

Windows

macOS

Linux

References

Module

MassEntity

Header

/Engine/Plugins/Runtime/MassEntity/Source/MassEntity/Public/MassArchetypeTypes.h

Include

#include "MassArchetypeTypes.h"

Syntax

struct FArchetypeChunkCollection

Remarks

A struct that converts an arbitrary array of entities of given Archetype into a sequence of continuous entity chunks. The goal is to have the user create an instance of this struct once and run through a bunch of systems. The runtime code usually uses FMassArchetypeChunkIterator to iterate on the chunk collection.

Constructors

Name Description

Public function

FArchetypeChunkCollection()

Public function

FArchetypeChunkCollection

(
    FArchetypeHandle& InArchetypeHandl...
)

Public function

FArchetypeChunkCollection

(
    TSharedPtr< FMassArchetypeData >& ...
)

Public function

FArchetypeChunkCollection

(
    const FArchetypeHandle& InArchetyp...,
    TConstArrayView< FMassEntityHandle ...,
    EDuplicatesHandling DuplicatesHandl...
)

Functions

Name Description

Public function Const

const FArche...

 

GetArchetype()

Public function Const

TArrayView< ...

 

GetChunks()

Public function Const

bool

 

IsEmpty()

Public function Const

bool

 

IsSame

(
    const FArchetypeChunkCollection& O...
)

The comparison function that checks if Other is identical to this.

Public function Const

bool

 

IsSet()

Public function

void

 

Reset()

Classes

Name

Description

Public struct

FChunkInfo

Enums

Name

Description

Public enum

EDuplicatesHandling