R-Type
2
Doom but in better
Loading...
Searching...
No Matches
Entity.cpp
Go to the documentation of this file.
1
#include "
Entity.hpp
"
2
3
Entity::Entity
(std::size_t
id
) : _id(id) {}
4
5
Entity::operator std::size_t()
const
{
6
return
_id;
7
}
8
9
std::size_t
Entity::getID
()
const
{
10
return
_id;
11
}
Entity.hpp
Entity::Entity
Entity(std::size_t id)
Constructs an Entity with a given ID.
Definition
Entity.cpp:3
Entity::getID
std::size_t getID() const
Retrieves the ID of the entity.
Definition
Entity.cpp:9
game_source
ECS
Entity.cpp
Generated on Thu Feb 6 2025 22:34:20 for R-Type by
1.12.0