#include <Entity.h>
|
| template<typename T > |
| void | addComponent (EU::TSharedPointer< T > component) |
| | Agrega un componente a la entidad.
|
| |
| virtual void | awake ()=0 |
| |
| virtual void | destroy ()=0 |
| | Método virtual puro para destruir el componente.
|
| |
| | Entity ()=default |
| |
| template<typename T > |
| EU::TSharedPointer< T > | getComponent () |
| | Obtiene un componente de la entidad por su tipo.
|
| |
| virtual void | init ()=0 |
| | Initialize the entity with a device context.
|
| |
| virtual void | render (DeviceContext &deviceContext)=0 |
| | Método virtual puro para renderizar el componente.
|
| |
| virtual void | update (float deltaTime, DeviceContext &deviceContext)=0 |
| | Método virtual puro para actualizar el componente.
|
| |
| virtual | ~Entity ()=default |
| | Destructor virtual.
|
| |
Definición en la lÃnea 12 del archivo Entity.h.
◆ Entity()
◆ ~Entity()
| virtual Entity::~Entity |
( |
| ) |
|
|
virtualdefault |
◆ addComponent()
◆ awake()
| virtual void Entity::awake |
( |
| ) |
|
|
pure virtual |
◆ destroy()
| virtual void Entity::destroy |
( |
| ) |
|
|
pure virtual |
Libera los recursos asociados al componente.
Implementado en Actor.
◆ getComponent()
◆ init()
| virtual void Entity::init |
( |
| ) |
|
|
pure virtual |
- Parámetros
-
| deviceContext | The device context to initialize with. |
- Devuelve
- True if initialization is successful, false otherwise.
Implementado en Actor.
◆ render()
- Parámetros
-
| deviceContext | Contexto del dispositivo para operaciones gráficas. |
Implementado en Actor.
◆ update()
| virtual void Entity::update |
( |
float |
deltaTime, |
|
|
DeviceContext & |
deviceContext |
|
) |
| |
|
pure virtual |
- Parámetros
-
| deltaTime | El tiempo transcurrido desde la última actualización. |
Implementado en Actor.
◆ m_components
◆ m_id
◆ m_isActive
La documentación de esta clase está generada del siguiente archivo: