![]() |
Chira Engine
A customizable MIT-licensed game engine.
|
The base entity class. More...
#include <Entity.h>
Public Member Functions | |
Entity (const Entity &)=default | |
Entity & | operator= (const Entity &)=default |
Entity (Entity &&)=default | |
Entity & | operator= (Entity &&)=default |
template<typename T , typename... Args> | |
T & | addComponent (Args &&...args) |
template<typename T > | |
void | addTagComponent () |
template<typename T > | |
T & | getComponent () |
template<typename T > | |
T & | getComponent () const |
template<typename T > | |
T * | tryGetComponent () const |
template<typename T > | |
bool | hasComponent () const |
template<typename T > | |
void | tryRemoveComponent () |
template<typename T > | |
void | removeComponent () |
bool | getVisible () const |
void | setVisible (bool visible) |
std::string | getName () const |
TransformComponent & | getTransform () |
const TransformComponent & | getTransform () const |
uuids::uuid | getUUID () |
uuids::uuid | getSceneUUID () |
entt::entity | getRawHandle () const |
operator bool () const | |
bool | operator! () const |
bool | operator== (const Entity &other) const |
bool | operator!= (const Entity &other) const |
Protected Member Functions | |
Entity (Scene *scene_) | |
Protected Attributes | |
Scene * | scene = nullptr |
entt::entity | handle = entt::null |