also define name for message comps

This commit is contained in:
Green Sky 2024-04-15 01:05:08 +02:00
parent d5c1bf07db
commit 25857b8aa7
No known key found for this signature in database

View File

@ -6,8 +6,12 @@
#define DEFINE_COMP_ID(x) \
template<> \
constexpr entt::id_type entt::type_hash<x>::value() noexcept { \
using namespace entt::literals; \
return #x##_hs; \
using namespace entt::literals; \
return #x##_hs; \
} \
template<> \
constexpr std::string_view entt::type_name<x>::value() noexcept { \
return #x; \
}
// cross compile(r) stable ids