Flecs v4.0
A fast entity component system (ECS) for C & C++
|
Class that wraps around a flecs::id_t. More...
#include <decl.hpp>
Public Member Functions | |
id (flecs::id_t value) | |
id (flecs::world_t *world, flecs::id_t value=0) | |
id (flecs::world_t *world, flecs::id_t first, flecs::id_t second) | |
id (flecs::world_t *world, const char *expr) | |
id (flecs::id_t first, flecs::id_t second) | |
id (const flecs::id &first, const flecs::id &second) | |
bool | is_pair () const |
Test if id is pair (has first, second) | |
bool | is_wildcard () const |
Test if id is a wildcard. | |
bool | is_entity () const |
Test if id is entity. | |
flecs::entity | entity () const |
Return id as entity (only allowed when id is valid entity) | |
flecs::entity | add_flags (flecs::id_t flags) const |
Return id with role added. | |
flecs::entity | remove_flags (flecs::id_t flags) const |
Return id with role removed. | |
flecs::entity | remove_flags () const |
Return id without role. | |
flecs::entity | remove_generation () const |
Return id without role. | |
flecs::entity | type_id () const |
Return component type of id. | |
bool | has_flags (flecs::id_t flags) const |
Test if id has specified role. | |
bool | has_flags () const |
Test if id has any role. | |
flecs::entity | flags () const |
Return id flags set on id. | |
bool | has_relation (flecs::id_t first) const |
Test if id has specified first. | |
flecs::entity | first () const |
Get first element from a pair. | |
flecs::entity | second () const |
Get second element from a pair. | |
flecs::string | str () const |
flecs::string | flags_str () const |
Convert role of id to string. | |
flecs::id_t | raw_id () const |
Return flecs::id_t value. | |
operator flecs::id_t () const | |
flecs::world | world () const |
Protected Attributes | |
flecs::world_t * | world_ |
flecs::id_t | id_ |
Class that wraps around a flecs::id_t.
A flecs id is an identifier that can be added to entities. Ids can be:
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |