test: use meta_factory<T> instead of meta<T>

This commit is contained in:
Michele Caini
2024-11-29 14:18:41 +01:00
parent c3914e0181
commit f3f9e9a8b9
17 changed files with 105 additions and 107 deletions

View File

@@ -29,7 +29,7 @@ meta_mixin<Type>::meta_mixin(const allocator_type &allocator)
: Type{allocator} {
using namespace entt::literals;
entt::meta<element_type>()
entt::meta_factory<element_type>{}
// cross registry, same type
.template func<entt::overload<entt::storage_for_t<element_type, entt::entity> &(const entt::id_type)>(&entt::basic_registry<entt::entity>::storage<element_type>), entt::as_ref_t>("storage"_hs)
// cross registry, different types