trying to find a consistent and C++1x styled graph representation

This commit is contained in:
Hartmut Seichter 2019-01-05 10:13:16 +01:00
parent f6c7f1adbb
commit 2e151b87c6
13 changed files with 528 additions and 31 deletions

View file

@ -8,7 +8,7 @@ void script_scene::load(sol::table &ns)
{
ns.new_usertype<node>("node",
sol::constructors<node(), node(std::string)>(),
sol::constructors<node()>(),
"add_child",&node::add_child,
"children",sol::readonly_property(&node::children),
"child_count",sol::readonly_property(&node::child_count),