R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Entity.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4
12class Entity {
13public:
19 explicit Entity(std::size_t id);
20
28 operator std::size_t() const;
29
35 std::size_t getID() const;
36
37private:
38 std::size_t _id;
39};
Represents an entity in an Entity-Component-System (ECS) architecture.
Definition Entity.hpp:12
Entity(std::size_t id)
Constructs an Entity with a given ID.
Definition Entity.cpp:3
std::size_t getID() const
Retrieves the ID of the entity.
Definition Entity.cpp:9