|
|
@@ -3,44 +3,11 @@
|
|
|
|
|
|
|
|
|
#include "../config/config.h"
|
|
|
-#include "../core/type_traits.hpp"
|
|
|
|
|
|
|
|
|
namespace entt {
|
|
|
|
|
|
|
|
|
-/**
|
|
|
- * @brief Alias for exclusion lists.
|
|
|
- * @tparam Type List of types.
|
|
|
- */
|
|
|
-template<typename... Type>
|
|
|
-struct exclude_t: type_list<Type...> {};
|
|
|
-
|
|
|
-
|
|
|
-/**
|
|
|
- * @brief Variable template for exclusion lists.
|
|
|
- * @tparam Type List of types.
|
|
|
- */
|
|
|
-template<typename... Type>
|
|
|
-constexpr exclude_t<Type...> exclude{};
|
|
|
-
|
|
|
-
|
|
|
-/**
|
|
|
- * @brief Alias for lists of observed components.
|
|
|
- * @tparam Type List of types.
|
|
|
- */
|
|
|
-template<typename... Type>
|
|
|
-struct get_t: type_list<Type...>{};
|
|
|
-
|
|
|
-
|
|
|
-/**
|
|
|
- * @brief Variable template for lists of observed components.
|
|
|
- * @tparam Type List of types.
|
|
|
- */
|
|
|
-template<typename... Type>
|
|
|
-constexpr get_t<Type...> get{};
|
|
|
-
|
|
|
-
|
|
|
/*! @class basic_registry */
|
|
|
template <typename>
|
|
|
class basic_registry;
|
|
|
@@ -78,7 +45,7 @@ template<typename>
|
|
|
class basic_continuous_loader;
|
|
|
|
|
|
/*! @brief Alias declaration for the most common use case. */
|
|
|
-ENTT_OPAQUE_TYPE(entity, ENTT_ID_TYPE);
|
|
|
+enum class entity: ENTT_ID_TYPE;
|
|
|
|
|
|
/*! @brief Alias declaration for the most common use case. */
|
|
|
using registry = basic_registry<entity>;
|