![]() |
ezEngine
Release 25.03
|
A typed handle to a component. More...
#include <Declarations.h>
Public Member Functions | |
ezTypedComponentHandle (const ezComponentHandle &hUntyped) | |
template<typename T , std::enable_if_t< std::is_convertible_v< T *, TYPE * >, bool > = true> | |
ezTypedComponentHandle (const ezTypedComponentHandle< T > &other) | |
template<typename T , std::enable_if_t< std::is_convertible_v< T *, TYPE * >, bool > = true> | |
EZ_ALWAYS_INLINE void | operator= (const ezTypedComponentHandle< T > &other) |
![]() | |
EZ_DECLARE_HANDLE_TYPE (ezComponentHandle, ezComponentId) | |
A typed handle to a component.
This should be preferred if the component type to be stored inside the handle is known, as it provides compile time checks against wrong usages (e.g. assigning unrelated types) and more clearly conveys intent.
See struct