test: reduce impact of entity_like, and prepare to fix it
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace test {
|
namespace test {
|
||||||
|
|
||||||
template<entt::entity_like Entity>
|
template<typename Entity>
|
||||||
struct custom_registry: private entt::basic_registry<Entity> {
|
struct custom_registry: private entt::basic_registry<Entity> {
|
||||||
using base_type = entt::basic_registry<Entity>;
|
using base_type = entt::basic_registry<Entity>;
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ struct entt::component_traits<ComponentBase::traits_based, ComponentBase::other_
|
|||||||
static constexpr auto page_size = 16u;
|
static constexpr auto page_size = 16u;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<entt::entity_like Entity>
|
template<typename Entity>
|
||||||
struct entt::component_traits<ComponentBase::traits_based, Entity> {
|
struct entt::component_traits<ComponentBase::traits_based, Entity> {
|
||||||
using entity_type = Entity;
|
using entity_type = Entity;
|
||||||
using element_type = ComponentBase::traits_based;
|
using element_type = ComponentBase::traits_based;
|
||||||
|
|||||||
Reference in New Issue
Block a user