![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <Entity.h>
Public Member Functions | |
EntityTypeId | GetStaticEntityTypeID () const override |
Entity () | |
virtual | ~Entity () |
![]() | |
IEntity () | |
virtual | ~IEntity () |
template<class T > | |
T * | GetComponent () const |
template<class T , class ... P> | |
T * | AddComponent (P &&... param) |
template<class T > | |
void | RemoveComponent () |
void | RemoveAllComponents () |
void | PassDataToAllComponents (const ECS::CustomEvent &evt) |
bool | operator== (const IEntity &rhs) const |
bool | operator!= (const IEntity &rhs) const |
bool | operator== (const IEntity *rhs) const |
bool | operator!= (const IEntity *rhs) const |
virtual EntityTypeId | GetStaticEntityTypeID () const =0 |
EntityId | GetEntityID () const |
void | SetActive (bool active) |
bool | IsActive () const |
virtual void | OnEnable () |
virtual void | OnDisable () |
Static Public Attributes | |
static const EntityTypeId | STATIC_ENTITY_TYPE_ID = util::Internal::FamilyTypeID<IEntity>::Get<E>() |
Additional Inherited Members | |
![]() | |
DECLARE_STATIC_LOGGER EntityId | m_EntityID |
bool | m_Active |
![]() | |
static std::shared_mutex | s_ComponentManagerLock |
Class: Entity
Summary: CRTP class. Any entity object should derive form the Entity class and passes itself as template parameter to the Entity class.
Author: Tobias Stein
Date: 30/09/2017
Typeparams:
|
inline |
|
inlinevirtual |
|
inlineoverridevirtual |
Implements ECS::IEntity.
|
static |