|
2D_Game_Engine
|
#include <entity.hpp>
Public Member Functions | |
| void | AddComponent (T &component, uint32_t uid) |
| void | RemoveComponent (uint32_t uid) |
| T * | GetComponent (uint32_t uid) |
| std::vector< T > & | GetComponents () |
| Rect * | GetComponentAsRect (int index) |
| void | Update (Scene *scene, float frame_time) |
| void | Render (Scene *scene) |
Public Attributes | |
| std::vector< T > | m_Components |
Definition at line 356 of file entity.hpp.
|
inline |
Add a component to the entity with the given uid.
Definition at line 363 of file entity.hpp.
|
inline |
Definition at line 389 of file entity.hpp.
|
inline |
Definition at line 407 of file entity.hpp.
|
inline |
Definition at line 400 of file entity.hpp.
|
inline |
Remove the component with the given uid.
Definition at line 373 of file entity.hpp.
| void ComponentManager< T, >::Render | ( | Scene * | scene | ) |
Renders all the components in the vector. Some components type don't need to be rendered.
| void ComponentManager< T, >::Update | ( | Scene * | scene, |
| float | frame_time ) |
Updates all the components in the vector. Some components type don't need to be updated.
| std::vector<T> ComponentManager< T, >::m_Components |
Definition at line 358 of file entity.hpp.