![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Untyped component reference. More...
#include <ref.hpp>
Public Member Functions | |
| untyped_ref () | |
| Default constructor. | |
| untyped_ref (world_t *world, entity_t entity, flecs::id_t id) | |
| Construct a reference from a world, entity, and component ID. | |
| untyped_ref (flecs::entity entity, flecs::id_t id) | |
| Construct a reference from an entity and component ID. | |
| flecs::entity | entity () const |
| Return the entity associated with the reference. | |
| flecs::id | component () const |
| Return the component associated with the reference. | |
| void * | get () |
| Get a pointer to the component value. | |
| bool | has () |
| Check if the reference has a valid component value. | |
| flecs::world | world () const |
| Get the world associated with the reference. | |
| operator bool () | |
| Implicit conversion to bool. | |
| void * | try_get () |
| Try to get a pointer to the component value. | |
Untyped component reference.
Reference to a component from a specific entity.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |