16class EntityId :
public entt::entt_traits<EntityId> {
18 entity_type mRawId{entt::null};
20 [[nodiscard]]
constexpr EntityId() =
default;
22 [[nodiscard]]
constexpr EntityId(entity_type rawId) : mRawId(rawId) {}
24 [[nodiscard]]
constexpr bool isNull()
const {
return *
this == entt::null; }
26 [[nodiscard]]
constexpr operator entity_type()
const {
return mRawId; }