viotecs 1.1.0
Loading...
Searching...
No Matches
viotecs::Entity Class Reference

#include <world.hpp>

Public Member Functions

 Entity ()=delete
 
 Entity (EntityId e)
 
 ~Entity ()=default
 
EntityId id ()
 
template<typename C , typename... Args>
Entityadd_component (Args &&... args)
 
template<typename C >
Cget_component ()
 
void remove ()
 

Detailed Description

Definition at line 26 of file world.hpp.

Constructor & Destructor Documentation

◆ Entity() [1/2]

viotecs::Entity::Entity ( )
delete

◆ Entity() [2/2]

viotecs::Entity::Entity ( EntityId  e)
inline

Definition at line 31 of file world.hpp.

◆ ~Entity()

viotecs::Entity::~Entity ( )
default

Member Function Documentation

◆ add_component()

template<typename C , typename... Args>
Entity & viotecs::Entity::add_component ( Args &&...  args)

Definition at line 393 of file world.hpp.

◆ get_component()

template<typename C >
C * viotecs::Entity::get_component ( )

Definition at line 399 of file world.hpp.

◆ id()

EntityId viotecs::Entity::id ( )

◆ remove()

void viotecs::Entity::remove ( )

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