21 lines
462 B
C++
21 lines
462 B
C++
// =============================================
|
|
// Aster: ecs_adapter.h
|
|
// Copyright (c) 2020-2024 Anish Bhobe
|
|
// =============================================
|
|
|
|
#pragma once
|
|
|
|
#include <entt/entt.hpp>
|
|
|
|
using EcsRegistry = entt::registry;
|
|
using Entity = entt::entity;
|
|
template <typename... T>
|
|
using Without = entt::exclude_t<T...>;
|
|
|
|
[[nodiscard]]
|
|
inline bool Exists(Entity entity)
|
|
{
|
|
return entity != entt::null;
|
|
}
|
|
|
|
constexpr Entity NULL_ENTITY = entt::null; |