poking around the scenegraph pattern implemented with EnTT

This commit is contained in:
Hartmut Seichter 2020-12-09 00:16:08 +01:00
parent cea83d06e8
commit 1f390f5a4d
5 changed files with 86 additions and 27 deletions

View file

@ -16,7 +16,10 @@ void register_scene_function(sol::state&,sol::table &ns)
ns.new_usertype<entity>("entity",
sol::constructors<entity>());
sol::constructors<entity(),entity(scene&)>(),
"add_child",&entity::add_child,
"child_count",sol::readonly_property(&entity::child_count)
);
ns.new_usertype<node>("node",