tess 0.4.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
entity_handle.h
1#pragma once
2
3#include <cstdint>
4
5// EntityHandle lives in its own header so non-ECS layers (the render
6// delta bridge in sim/delta_frame.h) can name entity identity without
7// pulling in the agent pipeline; <tess/ecs/adapter.h> re-exports it.
8namespace tess {
9
17 std::uint64_t value = 0xFFFF'FFFF'FFFF'FFFFULL;
18
19 [[nodiscard]] constexpr auto is_null() const noexcept -> bool {
20 return value == 0xFFFF'FFFF'FFFF'FFFFULL;
21 }
22
23 friend constexpr auto operator==(EntityHandle, EntityHandle) noexcept
24 -> bool = default;
25};
26
28inline constexpr EntityHandle kNullEntityHandle{};
29
30} // namespace tess
Definition entity_handle.h:16