42#ifndef RTYPE_ENTITY_HPP_
43 #define RTYPE_ENTITY_HPP_
66 std::numeric_limits<std::uint32_t>::max();
75 constexpr std::uint32_t
index(
void)
const;
82 constexpr operator std::uint64_t(
void)
const noexcept;
85 constexpr bool isNull(
void)
const noexcept;
90 friend struct std::hash<
Entity>;
97 struct hash<
rtp::ecs::Entity> {
100 return hash<std::uint64_t>{}(e.
_id);
105 #include "Entity.inl"
Represents an entity in the ECS (Entity-Component-System) architecture.
static constexpr std::uint64_t INDEX_MASK
constexpr Entity(std::uint32_t index, std::uint32_t generation)
constexpr std::uint32_t index(void) const
std::uint64_t _id
The unique identifier for the entity.
constexpr std::uint32_t generation(void) const
constexpr auto operator<=>(const Entity &) const =default
static constexpr std::uint32_t MAX_INDEX
static constexpr std::uint64_t GEN_SHIFT
constexpr bool isNull(void) const noexcept
File : RenderSystem.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue....
constexpr Entity NullEntity
size_t operator()(const rtp::ecs::Entity &e) const