PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
Loading...
Searching...
No Matches
ecs::Entity Class Reference

Entity class from ECS. More...

#include <Entity.hpp>

Public Member Functions

 Entity ()=delete
 Deleted default constructor, use Registry::createEntity() instead.
 
 ~Entity ()=default
 Destroy the Entity object.
 
template<class Component>
void addComponent (Component &&c)
 add a component to the entity using the registryRef method addComponent
 
template<class Component>
void removeComponent ()
 remove a component from the entity using the registryRef method removeComponent
 

Public Attributes

friend Registry
 

Private Member Functions

 Entity (size_t idx, RegistryRef ecs)
 Construct a new Entity object with the given index and registry reference.
 

Private Attributes

size_t _idx
 
RegistryRef _ecs
 

Detailed Description

Entity class from ECS.


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