![]() |
Flecs v3.2
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::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) More... | |
bool | is_wildcard () const |
Test if id is a wildcard. More... | |
bool | is_entity () const |
Test if id is entity. More... | |
flecs::entity | entity () const |
Return id as entity (only allowed when id is valid entity) More... | |
flecs::entity | add_flags (flecs::id_t flags) const |
Return id with role added. More... | |
flecs::entity | remove_flags (flecs::id_t flags) const |
Return id with role removed. More... | |
flecs::entity | remove_flags () const |
Return id without role. More... | |
flecs::entity | remove_generation () const |
Return id without role. More... | |
flecs::entity | type_id () const |
Return component type of id. More... | |
bool | has_flags (flecs::id_t flags) const |
Test if id has specified role. More... | |
bool | has_flags () const |
Test if id has any role. More... | |
flecs::entity | flags () const |
Return id flags set on id. More... | |
bool | has_relation (flecs::id_t first) const |
Test if id has specified first. More... | |
flecs::entity | first () const |
Get first element from a pair. More... | |
flecs::entity | second () const |
Get second element from a pair. More... | |
flecs::string | str () const |
flecs::string | flags_str () const |
Convert role of id to string. More... | |
flecs::id_t | raw_id () const |
Return flecs::id_t value. More... | |
operator flecs::id_t () const | |
flecs::world | world () const |
Protected Attributes | |
flecs::world_t * | m_world |
flecs::id_t | m_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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |