|
|
@@ -3,13 +3,46 @@
|
|
|
|
|
|
|
|
|
#include <type_traits>
|
|
|
+#include "../core/type_traits.hpp"
|
|
|
#include "../config/config.h"
|
|
|
-#include "registry.hpp"
|
|
|
+#include "fwd.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{};
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* @brief Converts a registry to a view.
|
|
|
* @tparam Const Constness of the accepted registry.
|