working ECS base

This commit is contained in:
Hartmut Seichter 2020-12-14 00:07:27 +01:00
parent f3c17f6d03
commit 4078cdea8f
8 changed files with 104 additions and 23 deletions

View file

@ -121,6 +121,8 @@ void register_core_function(sol::state& lua,sol::table& ns)
// , "line_strip", geometry::topology_type::line_strip
// );
ns.new_usertype<image>("image"
, sol::constructors<image()>()
,"create",&image::create

View file

@ -26,6 +26,7 @@ void register_scene_function(sol::state&,sol::table &ns)
ns.new_usertype<entity>("entity"
,sol::constructors<entity(),entity(const entity&),entity(scene&)>()
,"add_child",&entity::add_child
,"remove_child",&entity::remove_child
,"child_count",sol::readonly_property(&entity::child_count)
);