Photon Quantum 3.0.0

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

An entity-component pair. Used when iterating over components. Since this type contains a copy of the component, it is not suitable for writing back to the component. More...

Public Member Functions

void Deconstruct (out EntityRef entity, out T component)
 

Public Attributes

Component
 Copy of the component. More...
 
EntityRef Entity
 Entity the component belongs to. More...
 

Detailed Description

An entity-component pair. Used when iterating over components. Since this type contains a copy of the component, it is not suitable for writing back to the component.

Template Parameters
T
Type Constraints
T :unmanaged 
T :IComponent 

Member Data Documentation

◆ Entity

Entity the component belongs to.

◆ Component

T Quantum.EntityComponentPair< T >.Component

Copy of the component.