meta: ::identifier renamed to ::alias, added meta_type::id to get the id of the underlying type (close #412)

This commit is contained in:
Michele Caini
2020-02-11 12:30:55 +01:00
parent 0dfd2aa714
commit e52b3fd5bc
7 changed files with 127 additions and 92 deletions

View File

@@ -10,13 +10,13 @@ position create_position(int x, int y) {
void set_up() {
entt::meta<position>()
.type("position"_hs)
.alias("position"_hs)
.ctor<&create_position>()
.data<&position::x>("x"_hs)
.data<&position::y>("y"_hs);
entt::meta<velocity>()
.type("velocity"_hs)
.alias("velocity"_hs)
.ctor<>()
.data<&velocity::dx>("dx"_hs)
.data<&velocity::dy>("dy"_hs);