I was wondering if there were any thoughts on how to organize code for maximum re-usability especially when thinking about sharing and (not to forget) maintaining functionality across multiple projects.
I know that in principle Halions version of Lua does support the “require” function, which would be exactly what I’m looking for, alas for that I don’t see a way to get around relying on actual external lua files that would have to be shipped out to the users system. So I’m wondering if there is a recommended workflow here.
I was thinking if maybe multiple Lua Script objects can be helpful with this, or if maybe the library creator would allow me to “bake” external Lua files into a container that can be protected for deployment, but I’ve not really found a good answer so far.
Ideally I’d like to work with as many separate external lua files as I want and then have the whole thing compiled into a container when I export the program, but any other suggestions would be welcome.