Quantum 3 3.1.0

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

An entity-component read-only reference pair. Used when iterating over components with read-only access. More...

Public Member Functions

void Deconstruct (out EntityRef entity, out ReadOnlyRef< T > component)
 

Public Attributes

ReadOnlyRef< T > Component
 Read-only reference to the component. More...
 
EntityRef Entity
 The entity the component belongs to. More...
 

Detailed Description

An entity-component read-only reference pair. Used when iterating over components with read-only access.

Template Parameters
T
Type Constraints
T :unmanaged 
T :IComponent 

Member Data Documentation

◆ Entity

The entity the component belongs to.

◆ Component

Read-only reference to the component.