tess
0.4.0
Performance-first tile and path simulation substrate
Toggle main menu visibility
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.
8
namespace
tess {
9
16
struct
EntityHandle
{
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
28
inline
constexpr
EntityHandle
kNullEntityHandle{};
29
30
}
// namespace tess
tess::EntityHandle
Definition
entity_handle.h:16
include
tess
ecs
entity_handle.h
Generated by
1.17.0