5#include "cluster_defs.h"
8constexpr entity_id_t INVALID_ENTITY = std::numeric_limits<
decltype(INVALID_ENTITY)>::max();
11 entity_id_t id : 24 = INVALID_ENTITY;
12 entity_id_t version : 8 = 0;
15 return id == other.id && version == other.version;
19static_assert(
sizeof(
EntityHandle) ==
sizeof(entity_id_t),
"EntityHandle is the wrong size!");
22using pos_t = uint32_t;
23constexpr pos_t INVALID_INDEX = std::numeric_limits<
decltype(INVALID_INDEX)>::max();
25static constexpr inline bool EntityIsValid(entity_id_t
id){
26 return id != INVALID_ENTITY;
30static constexpr inline bool EntityIsValid(
entity_t id){
31 return EntityIsValid(
id.
id);
34static constexpr inline bool PosIsValid(pos_t
id){
35 return id != INVALID_INDEX;
38using e_clock_t = std::chrono::steady_clock;
40constexpr uint8_t MAX_CASCADES = SH_MAX_CASCADES;
42#define MOVE_NO_COPY(T) T(const T&) = delete; T(T&&) = default; T& operator=(T&&) = default;
uint32 uint32_t
Definition fwd.hpp:131
uint8 uint8_t
Definition fwd.hpp:103