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) 84 : m_Id(id), m_ComponentCache(componentCache)
96 #endif // INCLUDED_ENTITY IComponent * interfaces[1]
Definition: Entity.h:65
Definition: IComponent.h:33
size_t numInterfaces
Definition: Entity.h:64
Object wrapping an entity_id_t, with a SEntityComponentCache to support fast QueryInterface() / CmpPt...
Definition: Entity.h:79
SEntityComponentCache * m_ComponentCache
Definition: Entity.h:93
#define ENTITY_TAGMASK
Definition: Entity.h:57
const entity_id_t SYSTEM_ENTITY
Entity ID for singleton 'system' components.
Definition: Entity.h:43
const entity_id_t FIRST_LOCAL_ENTITY
Definition: Entity.h:60
uint32_t u32
Definition: types.h:39
entity_id_t m_Id
Definition: Entity.h:92
entity_id_t GetId() const
Definition: Entity.h:88
CEntityHandle(entity_id_t id, SEntityComponentCache *componentCache)
Definition: Entity.h:83
const entity_id_t INVALID_ENTITY
Invalid entity ID.
Definition: Entity.h:35
u32 entity_id_t
Entity ID type.
Definition: Entity.h:23
CEntityHandle()
Definition: Entity.h:82
SEntityComponentCache * GetComponentCache() const
Definition: Entity.h:89