![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Component reference. More...
#include <ref.hpp>
Public Member Functions | |
| ref (world_t *world, entity_t entity, flecs::id_t id=0) | |
| ref (flecs::entity entity, flecs::id_t id=0) | |
| T * | operator-> () |
| T * | get () |
| T * | try_get () |
Public Member Functions inherited from flecs::untyped_ref | |
| untyped_ref (world_t *world, entity_t entity, flecs::id_t id) | |
| untyped_ref (flecs::entity entity, flecs::id_t id) | |
| flecs::entity | entity () const |
| Return entity associated with reference. | |
| flecs::id | component () const |
| Return component associated with reference. | |
| void * | get () |
| bool | has () |
| flecs::world | world () const |
| operator bool () | |
| implicit conversion to bool. | |
| void * | try_get () |
Component reference.
Reference to a component from a specific entity.
|
inline |
|
inline |
| flecs::ref< T >::ref | ( | flecs::entity | entity, |
| flecs::id_t | id = 0 ) |
|
inline |
|
inline |
|
inline |