So I had an idea, and I was wondering about the feasibility of it. My idea is to have a folder of Lua script files to be loaded and run on-demand. The idea behind this is that each file would have a main() function. The final result is that this should be self-contained scripts with their own functions (which have no interaction with other script files unless called using an include directive).
But I'm wondering if there is a way to contain these scripts using your script engine implementation, and have each script file be self-contained so as not to do something silly like accidentally call a function from one file in another one.
Is this feasible, or would it require a rewrite of the implementation?
But I'm wondering if there is a way to contain these scripts using your script engine implementation, and have each script file be self-contained so as not to do something silly like accidentally call a function from one file in another one.
Is this feasible, or would it require a rewrite of the implementation?