Uranus  1.0.1.0
Uranus is a GameEngine written in C++
Loading...
Searching...
No Matches
uranus::ecs::Entity Class Reference

Entity class, used to identify entities. More...

#include <Entity.hpp>

Public Member Functions

 ~Entity ()=default
 Default destructor.
 
 operator std::size_t () const
 @breif Overloading the operator() to get the const id of the entity More...
 
 operator std::size_t & ()
 Overloading the operator() to get the id of the entity. More...
 

Private Member Functions

 Entity (size_t id)
 Constructor of the Entity class.
 

Private Attributes

size_t _id
 Id of the entity.
 

Friends

class Registry
 

Detailed Description

Entity class, used to identify entities.

Member Function Documentation

◆ operator std::size_t()

uranus::ecs::Entity::operator std::size_t ( ) const
inline

@breif Overloading the operator() to get the const id of the entity

Returns
Const id of the entity

◆ operator std::size_t &()

uranus::ecs::Entity::operator std::size_t & ( )
inline

Overloading the operator() to get the id of the entity.

Returns
Id of the entity

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