ecs-rs
ecs-rs copied to clipboard
Lua API
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.