Quantum 3 3.0.14

Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Quantum.ComponentFilterStructMeta Struct Reference

Component filter that is initialized from a filter class having component fields. More...

Static Public Member Functions

static ComponentFilterStructMeta Create< T > ()
 Create a new component filter meta from a filter type. More...
 

Public Attributes

int ComponentCount
 Return the component count from the filter. More...
 
fixed int ComponentOffsets [MAX_COMPONENT_TYPES]
 The component field offset for all types. More...
 
fixed int ComponentTypes [MAX_COMPONENT_TYPES]
 The component index for all types. More...
 
int EntityOffset
 The current entity offset. More...
 
ComponentSet Set
 The resulting component set. More...
 
int SetRank
 ComponentSet.Rank. More...
 

Static Public Attributes

const int MAX_COMPONENT_TYPES = 8
 Maximum number of component types that can be used to filter. More...
 

Detailed Description

Component filter that is initialized from a filter class having component fields.

Member Function Documentation

◆ Create< T >()

static ComponentFilterStructMeta Quantum.ComponentFilterStructMeta.Create< T > ( )
inlinestatic

Create a new component filter meta from a filter type.

Template Parameters
TFilter type
Returns
C
Exceptions
InvalidOperationException
Type Constraints
T :unmanaged 

Member Data Documentation

◆ MAX_COMPONENT_TYPES

const int Quantum.ComponentFilterStructMeta.MAX_COMPONENT_TYPES = 8
static

Maximum number of component types that can be used to filter.

◆ Set

ComponentSet Quantum.ComponentFilterStructMeta.Set

The resulting component set.

◆ SetRank

int Quantum.ComponentFilterStructMeta.SetRank

ComponentSet.Rank.

◆ EntityOffset

int Quantum.ComponentFilterStructMeta.EntityOffset

The current entity offset.

◆ ComponentCount

int Quantum.ComponentFilterStructMeta.ComponentCount

Return the component count from the filter.

◆ ComponentOffsets

fixed int Quantum.ComponentFilterStructMeta.ComponentOffsets[MAX_COMPONENT_TYPES]

The component field offset for all types.

◆ ComponentTypes

fixed int Quantum.ComponentFilterStructMeta.ComponentTypes[MAX_COMPONENT_TYPES]

The component index for all types.