![]() |
Skylicht Engine
|
This is the object class that describes an entity. More...
#include <Entity/CEntity.h>
Public Member Functions | |
| CEntity (CEntityManager *mgr) | |
| CEntity (CEntityPrefab *mgr) | |
| void | remove () |
| template<class T> | |
| T * | addData () |
| template<class T> | |
| T * | addData (int index) |
| IEntityData * | addDataByActivator (const char *dataType) |
| CEntityManager * | getEntityManager () |
| int | getDataCount () |
| IEntityData * | getDataByIndex (u32 dataIndex) |
| void | setID (const char *id) |
| std::string & | getID () |
| template<class T> | |
| T * | getData () |
| template<class T> | |
| bool | removeData () |
| bool | removeData (u32 index) |
| void | removeAllData () |
| int | getIndex () |
| bool | isAlive () |
| bool | isVisible () |
| void | setVisible (bool b) |
| void | notifyUpdateGroup (int type) |
Public Attributes | |
| IEntityData * | Data [MAX_ENTITY_DATA] |
Protected Member Functions | |
| void | setAlive (bool b) |
Protected Attributes | |
| bool | m_visible |
| bool | m_alive |
| int | m_index |
| std::string | m_id |
| CEntityManager * | m_mgr |
Friends | |
| class | CEntityManager |
| class | CEntityPrefab |
This is the object class that describes an entity.
Within an entity, various types of data (IEntityData) will be stored. Example: CWorldTransformData, CVisibleData, CCullingData, CRenderMeshData...
Use the GET_ENTITY_DATA macro to retrieve the Data object attached to the Entity.