|
|
@@ -147,15 +147,15 @@ struct Meta: ::testing::Test {
|
|
|
|
|
|
entt::meta<char>()
|
|
|
.type("char"_hs)
|
|
|
- .prop<entt::property<properties::prop_int, 42>>()
|
|
|
+ .prop(properties::prop_int, 42)
|
|
|
.data<&set<char>, &get<char>>("value"_hs);
|
|
|
|
|
|
entt::meta<properties>()
|
|
|
.data<properties::prop_bool>("prop_bool"_hs)
|
|
|
- .prop<entt::property<properties::prop_int, 0>>()
|
|
|
+ .prop(properties::prop_int, 0)
|
|
|
.data<properties::prop_int>("prop_int"_hs)
|
|
|
- .prop<entt::property<properties::prop_bool, true>>()
|
|
|
- .prop<entt::property<properties::prop_int, 0>>()
|
|
|
+ .prop(properties::prop_bool, true)
|
|
|
+ .prop(properties::prop_int, 0)
|
|
|
.data<&set<properties>, &get<properties>>("value"_hs);
|
|
|
|
|
|
entt::meta<unsigned int>().data<0u>("min"_hs).data<100u>("max"_hs);
|
|
|
@@ -165,12 +165,12 @@ struct Meta: ::testing::Test {
|
|
|
|
|
|
entt::meta<derived_type>()
|
|
|
.type("derived"_hs)
|
|
|
- .prop<entt::property<properties::prop_int, 99>>()
|
|
|
+ .prop(properties::prop_int, 99)
|
|
|
.base<base_type>()
|
|
|
.ctor<const base_type &, int, char>()
|
|
|
- .prop<entt::property<properties::prop_bool, false>>()
|
|
|
+ .prop(properties::prop_bool, false)
|
|
|
.ctor<&derived_factory>()
|
|
|
- .prop<entt::property<properties::prop_int, 42>>()
|
|
|
+ .prop(properties::prop_int, 42)
|
|
|
.conv<&derived_type::f>()
|
|
|
.conv<&derived_type::g>();
|
|
|
|
|
|
@@ -186,13 +186,13 @@ struct Meta: ::testing::Test {
|
|
|
entt::meta<data_type>()
|
|
|
.type("data"_hs)
|
|
|
.data<&data_type::i, entt::as_alias_t>("i"_hs)
|
|
|
- .prop<entt::property<properties::prop_int, 0>>()
|
|
|
+ .prop(properties::prop_int, 0)
|
|
|
.data<&data_type::j>("j"_hs)
|
|
|
- .prop<entt::property<properties::prop_int, 1>>()
|
|
|
+ .prop(properties::prop_int, 1)
|
|
|
.data<&data_type::h>("h"_hs)
|
|
|
- .prop<entt::property<properties::prop_int, 2>>()
|
|
|
+ .prop(properties::prop_int, 2)
|
|
|
.data<&data_type::k>("k"_hs)
|
|
|
- .prop<entt::property<properties::prop_int, 3>>()
|
|
|
+ .prop(properties::prop_int, 3)
|
|
|
.data<&data_type::empty>("empty"_hs)
|
|
|
.data<&data_type::v, entt::as_void_t>("v"_hs);
|
|
|
|
|
|
@@ -205,15 +205,15 @@ struct Meta: ::testing::Test {
|
|
|
.type("func"_hs)
|
|
|
.func<entt::overload<int(const base_type &, int, int)>(&func_type::f)>("f3"_hs)
|
|
|
.func<entt::overload<int(int, int)>(&func_type::f)>("f2"_hs)
|
|
|
- .prop<entt::property<properties::prop_bool, false>>()
|
|
|
+ .prop(properties::prop_bool, false)
|
|
|
.func<entt::overload<int(int) const>(&func_type::f)>("f1"_hs)
|
|
|
- .prop<entt::property<properties::prop_bool, false>>()
|
|
|
+ .prop(properties::prop_bool, false)
|
|
|
.func<&func_type::g>("g"_hs)
|
|
|
- .prop<entt::property<properties::prop_bool, false>>()
|
|
|
+ .prop(properties::prop_bool, false)
|
|
|
.func<&func_type::h>("h"_hs)
|
|
|
- .prop<entt::property<properties::prop_bool, false>>()
|
|
|
+ .prop(properties::prop_bool, false)
|
|
|
.func<&func_type::k>("k"_hs)
|
|
|
- .prop<entt::property<properties::prop_bool, false>>()
|
|
|
+ .prop(properties::prop_bool, false)
|
|
|
.func<&func_type::v, entt::as_void_t>("v"_hs)
|
|
|
.func<&func_type::a, entt::as_alias_t>("a"_hs);
|
|
|
|
|
|
@@ -226,14 +226,14 @@ struct Meta: ::testing::Test {
|
|
|
|
|
|
entt::meta<an_abstract_type>()
|
|
|
.type("an_abstract_type"_hs)
|
|
|
- .prop<entt::property<properties::prop_bool, false>>()
|
|
|
+ .prop(properties::prop_bool, false)
|
|
|
.data<&an_abstract_type::i>("i"_hs)
|
|
|
.func<&an_abstract_type::f>("f"_hs)
|
|
|
.func<&an_abstract_type::g>("g"_hs);
|
|
|
|
|
|
entt::meta<another_abstract_type>()
|
|
|
.type("another_abstract_type"_hs)
|
|
|
- .prop<entt::property<properties::prop_int, 42>>()
|
|
|
+ .prop(properties::prop_int, 42)
|
|
|
.data<&another_abstract_type::j>("j"_hs)
|
|
|
.func<&another_abstract_type::h>("h"_hs);
|
|
|
|
|
|
@@ -249,7 +249,7 @@ struct Meta: ::testing::Test {
|
|
|
|
|
|
entt::meta<derived_type>()
|
|
|
.type("my_type"_hs)
|
|
|
- .prop<entt::property<properties::prop_bool, false>>()
|
|
|
+ .prop(properties::prop_bool, false)
|
|
|
.ctor<>();
|
|
|
|
|
|
entt::meta<another_abstract_type>()
|