I am looking to embed Lua into my C# application and i thought there was a wrapper around the lua API for C#, but don't remember what it is. Can someone point me in it's direction?
Moreover, for a C function to be called from Lua, we must register it, that is, we must give its address to Lua in an appropriate way. When Lua calls a C function, it uses the same kind of stack that C uses to call Lua. The C function gets its arguments from the stack and pushes the results on the stack.
This lua wrapper for C++ is a library which allows you to easily manage lua code. It was designed to be as simple as possible to use.
I believe LuaInterface is the most popular one for C#. If I'm wrong, I'm sure someone will correct me.
There's a little more information (from Lua's developers) on integrating Lua and .NET, on the Lua website.
Update:
As of April 2013, the primary developer announced that the project was stalling due to other committements, and has pointed new developments to NLua instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With