Flecs v4.0
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 () |
bool | has () |
operator bool () | |
implicit conversion to bool. | |
flecs::entity | entity () const |
Component reference.
Reference to a component from a specific entity.
|
inline |
|
inline |
|
inline |
flecs::entity flecs::ref< T >::entity | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |