LuaPlus classes in C++
No replies to this topic
Members - Reputation: 1169
Posted 28 February 2012 - 11:18 AM
Hi, I have been working on integrating LuaPlus into my engine, and I ran into a small problem. My engine uses a componet based entity system, and I want scripts to be able to define classes similar to the way you do in Unity. I plan on having scripts create metatables and creating a table in C++ that uses the metatable from the script to call script functions sored in the script metatable. How can I set something like that up? Should I hve a function that gets called in the script to register the metatable?