C
C#2mo ago
Kalam

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
Angius
Angius2mo ago
Something like NLua for example
Nlua
Nlua
NLua is the bind between Lua world and the .NET world.
Pobiega
Pobiega2mo ago
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.
Kalam
Kalam2mo ago
I see, so then would I have to specify what I want other users to be able to access?
cap5lut
cap5lut2mo ago
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
Pobiega
Pobiega2mo ago
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
Kalam
Kalam2mo ago
I see, that clears up a lot of doubts, thank you all