Continue experimenting with scripting for my game.
Faced the following issues with Rhai:
- Passing references into the scripting engine is not supported out of the box. This can be emulated by creating an unsafe wrapper, but not very convenient.
- Even with the mentioned wrapper, I have to transmute out lifetimes because only non-static types can be passed.
- Native methods still has to be duplicated inside Rhai's module definition.
I think I'll give Lua another go 🤔