Lua functionality
Hi, this isn't specifically a problem that I'm having, I was just wondering how applications made in a specific language allows 'users' to extend functionality with Lua or any other scripting language. Any insight would be helpful :)
6 Replies
Lua was made specifically to be embeddable, there are lua wrappers for most programming languages that allow them to execute lua code inside, just like NLua linked above.
I see, so then would I have to specify what I want other users to be able to access?
its common for embedded script languages, that u have to write some kind of interface layer between ur application and the script, this is not limited to just lua
yeah absolutely, look at world of warcrafts lua addons, or factorio for example
the game devs make specific functions in their engine callable from lua
I see, that clears up a lot of doubts, thank you all