Vivid
|
#include <Entity.h>
Public Member Functions | |
Entity (int id, String name) | |
void | Draw (Camera *camera) |
void | ImguiRender () |
void | DrawGizmo (Camera *camera) |
int | GetEntityID () const |
String | GetName () const |
void | SetName (String &name) |
void | SetName (String &&name) |
int | HasComponent (ComponentType ct) |
Checks if the Entity has a component. | |
void | RemoveComponent (const int &componentID) |
void | AddComponent (const int &componentID) |
Contains an Entity.
Contains an Entity Every Entity contains a vector of components which can further be Added and Removed
Entity is an object you see in the scene-tree. It contains a vector of componentsIDs which can be added and removed. All the Entities are stored in a gloabal map in the
Vivid::Entity::Entity | ( | int | id, |
String | name | ||
) |
Definition at line 11 of file Entity.cpp.
void Vivid::Entity::AddComponent | ( | const int & | componentID | ) |
Definition at line 81 of file Entity.cpp.
void Vivid::Entity::Draw | ( | Camera * | camera | ) |
Definition at line 36 of file Entity.cpp.
void Vivid::Entity::DrawGizmo | ( | Camera * | camera | ) |
Definition at line 44 of file Entity.cpp.
int Vivid::Entity::HasComponent | ( | ComponentType | ct | ) |
Checks if the Entity has a component.
Checks if the Entity has a component of the given type.
ct | The type of the component. |
Definition at line 54 of file Entity.cpp.
void Vivid::Entity::ImguiRender | ( | ) |
Definition at line 19 of file Entity.cpp.
void Vivid::Entity::RemoveComponent | ( | const int & | componentID | ) |
Definition at line 67 of file Entity.cpp.