18#ifndef INCLUDED_ENTITY
19#define INCLUDED_ENTITY
57#define ENTITY_TAGMASK (1 << 29)
58#define ENTITY_IS_NORMAL(id) (((id) & ENTITY_TAGMASK) == 0)
59#define ENTITY_IS_LOCAL(id) (((id) & ENTITY_TAGMASK) == ENTITY_TAGMASK)
Object wrapping an entity_id_t, with a SEntityComponentCache to support fast QueryInterface() / CmpPt...
Definition: Entity.h:80
entity_id_t m_Id
Definition: Entity.h:92
SEntityComponentCache * m_ComponentCache
Definition: Entity.h:93
CEntityHandle()
Definition: Entity.h:82
CEntityHandle(entity_id_t id, SEntityComponentCache *componentCache)
Definition: Entity.h:83
SEntityComponentCache * GetComponentCache() const
Definition: Entity.h:89
entity_id_t GetId() const
Definition: Entity.h:88
Definition: IComponent.h:33
const entity_id_t INVALID_ENTITY
Invalid entity ID.
Definition: Entity.h:35
const entity_id_t SYSTEM_ENTITY
Entity ID for singleton 'system' components.
Definition: Entity.h:43
#define ENTITY_TAGMASK
Definition: Entity.h:57
u32 entity_id_t
Entity ID type.
Definition: Entity.h:29
const entity_id_t FIRST_LOCAL_ENTITY
Definition: Entity.h:60
size_t numInterfaces
Definition: Entity.h:64
IComponent * interfaces[1]
Definition: Entity.h:65
uint32_t u32
Definition: types.h:39