Go to the source code of this file.
◆ REGISTER_COMPONENT
Value: template<> \
struct ComponentTraits<
Type> { \
static constexpr bool s_is_registered = true; \
static constexpr const char* name = #
Type; \
static inline const usize id = detail::ComponentIdGenerator::next(); \
};
constexpr T g_type_max
Definition types.hpp:21
std::size_t usize
Definition types.hpp:18
Registers a component for use with ECS (non-namespaced)
- Parameters
-
◆ REGISTER_SD_COMPONENT
Value: template<> \
struct ComponentTraits<
Type> { \
static constexpr bool s_is_registered = true; \
static constexpr const char* name =
"SD_" #
Type; \
static inline const usize id = detail::ComponentIdGenerator::next(); \
};
Registers a SD component for use with ECS.
Needs to be run to use a component with ECS
- Parameters
-