meta: removed deprecated functions

This commit is contained in:
Michele Caini
2020-05-10 16:36:24 +02:00
parent 78d43a49c6
commit 226bd44e2c
11 changed files with 104 additions and 143 deletions

View File

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