ecs-rs icon indicating copy to clipboard operation
ecs-rs copied to clipboard

Lua API

Open futile opened this issue 9 years ago • 1 comments

It would be nice to be able to interface with lua code, so scripts can add/manipulate/remove entities. One possibility would be to use hlua.

Some things that should be considered:

  • Lua has closures, so it should be possible to map a lot of the rust api
  • The {Component,System}Managers types at least are created at compile-time using macros, so any necessary trait implementations will need to be generated at compile-time as well

Since Lua is garbage-collected, and especially does not have something similar to rust's borrow-checker, references/lifetimes could be a problem.

futile avatar Jan 10 '16 22:01 futile