mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-01 11:43:41 +00:00
47 lines
766 B
C++
47 lines
766 B
C++
#ifndef ENTT_ENTITY_UTILITY_HPP
|
|
#define ENTT_ENTITY_UTILITY_HPP
|
|
|
|
|
|
#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>
|
|
inline 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>
|
|
inline constexpr get_t<Type...> get{};
|
|
|
|
|
|
}
|
|
|
|
|
|
#endif
|