Apparatus Version 1.23
ECS data-oriented workflow for Unreal Engine.
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | Friends | List of all members
FTraitInfo Struct Reference

The internal information about a trait. More...

#include <TraitInfo.h>

Collaboration diagram for FTraitInfo:
Collaboration graph
[legend]

Public Types

enum  { InvalidId = -1 , FirstId = 0 }
 

Public Member Functions

 FTraitInfo ()
 Construct a stale trait information struct.
 
 FTraitInfo (const UScriptStruct *const InType, const int32 InId)
 Construct a new trait information struct.
 

Public Attributes

const UScriptStruct * Type = nullptr
 The type of the trait type.
 
int32 Id = InvalidId
 The unique identifier of the trait.
 
FBitMask Mask
 The bitmask of the trait.
 

Friends

struct FSubjectHandle
 
class UChunk
 
class UMachine
 
class ISubjective
 

Detailed Description

The internal information about a trait.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
InvalidId 

Invalid trait identifier.

FirstId 

First valid trait identifier.

Constructor & Destructor Documentation

◆ FTraitInfo() [1/2]

FTraitInfo::FTraitInfo ( )
inline

Construct a stale trait information struct.

◆ FTraitInfo() [2/2]

FTraitInfo::FTraitInfo ( const UScriptStruct *const  InType,
const int32  InId 
)
inline

Construct a new trait information struct.

Friends And Related Function Documentation

◆ FSubjectHandle

friend struct FSubjectHandle
friend

◆ ISubjective

friend class ISubjective
friend

◆ UChunk

friend class UChunk
friend

◆ UMachine

friend class UMachine
friend

Member Data Documentation

◆ Id

int32 FTraitInfo::Id = InvalidId

The unique identifier of the trait.

Matches its index within the global machine's array.

◆ Mask

FBitMask FTraitInfo::Mask

The bitmask of the trait.

◆ Type

const UScriptStruct* FTraitInfo::Type = nullptr

The type of the trait type.

This is a strong pointer that should grab and hold the type, so that non-property trait references in traitmarks are guaranteed to be present.


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