Raito 0.1
Loading...
Searching...
No Matches
Raito::ECS::Entity Class Reference

#include <Entity.h>

Public Member Functions

 Entity ()=default
 
 Entity (entt::entity handle, Scene *scene)
 
 Entity (const Entity &other)=default
 
template<typename T , typename... Args>
TAddComponent (Args &&... args)
 
template<typename T , typename... Args>
TAddOrReplaceComponent (Args &&... args)
 
template<typename T >
TGetComponent ()
 
template<typename T >
bool HasComponent () const
 
template<typename T >
void RemoveComponent () const
 
 operator bool () const
 
 operator entt::entity () const
 
 operator uint32_t () const
 
UUID GetUUID ()
 
const std::string & GetName ()
 
bool operator== (const Entity &other) const
 
bool operator!= (const Entity &other) const
 

Constructor & Destructor Documentation

◆ Entity() [1/3]

Raito::ECS::Entity::Entity ( )
default

◆ Entity() [2/3]

Raito::ECS::Entity::Entity ( entt::entity handle,
Scene * scene )

◆ Entity() [3/3]

Raito::ECS::Entity::Entity ( const Entity & other)
default

Member Function Documentation

◆ AddComponent()

template<typename T , typename... Args>
T & Raito::ECS::Entity::AddComponent ( Args &&... args)
inline

◆ AddOrReplaceComponent()

template<typename T , typename... Args>
T & Raito::ECS::Entity::AddOrReplaceComponent ( Args &&... args)
inline

◆ GetComponent()

template<typename T >
T & Raito::ECS::Entity::GetComponent ( )
inline

◆ GetName()

const std::string & Raito::ECS::Entity::GetName ( )
inline

◆ GetUUID()

UUID Raito::ECS::Entity::GetUUID ( )
inline

◆ HasComponent()

template<typename T >
bool Raito::ECS::Entity::HasComponent ( ) const
inline

◆ operator bool()

Raito::ECS::Entity::operator bool ( ) const
inline

◆ operator entt::entity()

Raito::ECS::Entity::operator entt::entity ( ) const
inline

◆ operator uint32_t()

Raito::ECS::Entity::operator uint32_t ( ) const
inline

◆ operator!=()

bool Raito::ECS::Entity::operator!= ( const Entity & other) const
inline

◆ operator==()

bool Raito::ECS::Entity::operator== ( const Entity & other) const
inline

◆ RemoveComponent()

template<typename T >
void Raito::ECS::Entity::RemoveComponent ( ) const
inline

The documentation for this class was generated from the following files: