Quantum 3 3.0.12

Public Member Functions | Properties | List of all members
Quantum.ComponentFilterStruct< T > Struct Template Reference

Component filter. More...

Public Member Functions

bool Next (T *components)
 Advances the filter to the next element of the collection. More...
 
void Reset ()
 Reset the filter. More...
 
bool Reset (int offset, int count)
 Reset a part of the filter. More...
 

Properties

bool UseCulling [get, set]
 Include culled entities. More...
 

Detailed Description

Component filter.

Template Parameters
TComponent type to find.
Type Constraints
T :unmanaged 

Member Function Documentation

◆ Reset() [1/2]

void Quantum.ComponentFilterStruct< T >.Reset ( )
inline

Reset the filter.

◆ Reset() [2/2]

bool Quantum.ComponentFilterStruct< T >.Reset ( int  offset,
int  count 
)
inline

Reset a part of the filter.

Parameters
offsetOffset
countCount

◆ Next()

bool Quantum.ComponentFilterStruct< T >.Next ( T *  components)
inline

Advances the filter to the next element of the collection.

Parameters
componentsThe component pointer
Returns
true if the filter was successfully advanced to the next element; false if the filter has passed the end of the collection.


Property Documentation

◆ UseCulling

bool Quantum.ComponentFilterStruct< T >.UseCulling
getset

Include culled entities.