Navigation
API > API/Runtime > API/Runtime/MassEntity
Template class for registering and managing bitsets for Mass types (e.g., Fragments and Tags). Provides functionality to create builders for constructing bitsets. The type hosts a FStructTracker instance that stores information on all the types used to build bitsets via it, and only those types - as opposed to TStructTypeBitSet, which is using the same FStructTracker throughout the engine's instance lifetime.
| Name | TBitTypeRegistry |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassBitSetRegistry.h |
| Include Path | #include "MassBitSetRegistry.h" |
Syntax
template<typename T, typename TUStructType>
struct TBitTypeRegistry
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TBitTypeRegistry() |
Constructor that initializes the struct tracker. | MassBitSetRegistry.h |
Structs
| Name | Remarks |
|---|---|
| FBitSetFactory | Factory type for creating and initializing bitsets. |
| FBitSetStructTracker | Specialized struct tracker for bitsets, disabling serialization. |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FBitSet | typename FBitSetBuilder::FConstBitSet | The type representing the runtime-used bitset. Const by design. | MassBitSetRegistry.h |
| FBitSetBuilder | TTypeBitSetBuilder< T, TUStructType, TTypeBitSetTraits< T >::RequiresBaseType > | Alias for the bitset builder specific to the type T | MassBitSetRegistry.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| StructTracker | FBitSetStructTracker | Struct tracker for managing types | MassBitSetRegistry.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Creates a factory for building new bitsets, essentially a FBitSetBuilder-BitSet combo. | MassBitSetRegistry.h | ||
FBitSetBuilder MakeBuilder
(
FBitSet& BitSet |
Creates a bitset builder for an existing bitset. | MassBitSetRegistry.h | |
int32 RegisterType () |
Template method to register a type with the struct tracker. | MassBitSetRegistry.h | |
int32 RegisterType
(
const UScriptStruct* Type |
Registers a type with the struct tracker. | MassBitSetRegistry.h |