ezEngine  Milestone 7
ezComponentHandle Class Reference

A handle to a component. More...

#include <Declarations.h>

Private Member Functions

 EZ_DECLARE_HANDLE_TYPE (ezComponentHandle, ezComponentId)
 

Friends

class ezWorld
 
class ezComponentManagerBase
 
class ezComponent
 

Detailed Description

A handle to a component.

Never store a direct pointer to a component. Always store a handle instead. A pointer to a component can be received by calling ezWorld::TryGetComponent or TryGetComponent on the corresponding component manager. Note that the component might have been deleted so always check the return value of TryGetComponent.


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