working ECS base
This commit is contained in:
parent
f3c17f6d03
commit
4078cdea8f
8 changed files with 104 additions and 23 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue